Q. What is the output of C Program with pointers?
Code:int main()
{
int a=20;
//a memory location=1234
printf("%d %d %d", a, &a, *(&a));
return 0;
}
Dear candidates you will find MCQ questions of C Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
int main()
{
int a=20;
//a memory location=1234
printf("%d %d %d", a, &a, *(&a));
return 0;
}
int main()
{
int a=20;
printf("CINEMA ");
return 1;
printf("DINOSAUR");
return 1;
}
int sum(int);
int main()
{
int b;
b = sum(4);
printf("%d", b);
}
int sum(int x)
{
int k=1;
if(x<=1)
return 1;
k = x + sum(x-1);
return k;
}
int mul(int);
int main()
{
int b;
b = mul(3);
printf("%d", b);
}
int mul(int x)
{
if(x<=1)
return 1;
return (x * mul(x-1));
}