Dear all,
why in the following program
#include<stdio. h>
#include<stdlib .h>
int main(void)
{
int x[] = {99,2,3,4,5};
int *ptr,**ptr2;
ptr = x;
ptr2 = &ptr;
printf("%d",*(& ptr2 + 2));
return EXIT_SUCCESS;
}
printf("%d",*(& ptr2 + 2)); is printing the first element of the array
x ? can anybody explain ?
why in the following program
#include<stdio. h>
#include<stdlib .h>
int main(void)
{
int x[] = {99,2,3,4,5};
int *ptr,**ptr2;
ptr = x;
ptr2 = &ptr;
printf("%d",*(& ptr2 + 2));
return EXIT_SUCCESS;
}
printf("%d",*(& ptr2 + 2)); is printing the first element of the array
x ? can anybody explain ?
Comment