A
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;
}
{
int a = 4;
int *p;
p=&a;
while(*p > 0)
{
printf("%d ", *p);
(*p)--;
}
return 0;
}
- Correct Answer - Option(C)
- Views: 26
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.