Thursday, 5 September 2013

regarding the implementation of double pointers, like syntax variations

regarding the implementation of double pointers, like syntax variations

#include <stdio.h>
#include <conio.h>
int main()
{
int *arr[]={1,2,3,4,5};
printf("%d\n%d",**arr,**(arr+1));
return 0;
}
I am getting a warning like initialization makes pointer form integer
without a cast actually i don't know how pointers works for char and int.
any suggestion will yield my knowledge. thanks for any help in advance.

No comments:

Post a Comment