How many consecutive nested pointer (pointer to pointer) can i have in one order? Is there a limit of doing references?
-
12-11-2019 - |
문제
The follow program declares a pointer then again a new pointer to hold address of previous pointer variable.. How much can I use nested pointer variable to hold memory address is there any limit?
#include <stdio.h>
#include <conio.h>
void main()
{
int x=2,y=5;
int *ptr;
int **sptr;
int ***ssptr;
ptr = &x; // address of x
*ptr = 0;
sptr = &ptr;
ssptr = & sptr;
printf(" address is ip = %u %u %u",ptr,sptr,ssptr);
_getch();
}
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow