A program that uses pointers to copy an array of double #include #include double *rina(double a[],int m); int main(){ double a[10],*n; int i,m; printf("enter how many number to copy :"); scanf("%d",&m); for(i=0;i Another Way #include #include int main() { double a[] = {1,2,3,4}; double *p = a; int i; for( i = 0; i<4;i++ ) { printf("%lf\n",*(p+i)); } return 0; } Output: Other C Programming: C programming beginner from Hello World Keywords in C programming Palindrome and armstrong in function C programming Nepali Flag in C programming switch statement using character in C programming Control Statement in C programming Control Statements in C programming (if and else) Program for Stack Using switch( PUSH POP DISPLAY and empty Examples of while, Do while
Post a Comment