#include<iostream>
using namespace std;
void anik(double r[5])
{
double *p, i;
p = &r[0];
cout << "Array are :: ";
for(i=0;i<5;i++)
{
cout << *p << " ";
p++;
}
cout << endl;
}
int main()
{
double ar[5];
int i;
cout << "Enter Five Number : ";
for(i=0;i<5;i++)
{
cin >> ar[i];
}
cout << endl;
anik(ar);
return 0;
}
using namespace std;
void anik(double r[5])
{
double *p, i;
p = &r[0];
cout << "Array are :: ";
for(i=0;i<5;i++)
{
cout << *p << " ";
p++;
}
cout << endl;
}
int main()
{
double ar[5];
int i;
cout << "Enter Five Number : ";
for(i=0;i<5;i++)
{
cin >> ar[i];
}
cout << endl;
anik(ar);
return 0;
}
Comments
Post a Comment