Hi ,how can I do that
when I do that is giving me -warning assignment from incompatible pointer type in cCode:double *px; px=a;
a is two dimetional array of doubles
Hi ,how can I do that
when I do that is giving me -warning assignment from incompatible pointer type in cCode:double *px; px=a;
a is two dimetional array of doubles
Last edited by lio; 11-06-2010 at 10:29 AM.
Note that this is different from sayCode:double a[10][20]; double (*pa)[20] = a; // a pointer to an array of 20 doubles
Code:double **pa; // pointer to pointer to double double *pa[20]; // an array of 20 pointers to double
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.