Q. What is the output of C Program with pointers.?
Code:
int main()
{
int a = 4;
int *p;
p=&a;
while(*p > 0)
{
printf("%d ", *p);
(*p)--;
}
return 0;
}
β
Correct Answer: (C)
4 3 2 1