C Language MCQ - English
Which of the following statements are correct about the program?
#inclu
Home | Discussion Forum
Which of the following statements are correct about the program?#include<stdio.h>
int main()
{
printf("%p\n", main());
return 0;
}
Answer : B
View More Related Question
1) How many times the program will print "Study 2 Online" ? #include<stdio.h>
int main()
{
printf("Study 2 Online");
main();
return 0;
}
2) What will be the output of the program?#include<stdio.h>
void fun(int);
typedef int (*pf) (int, int);
int proc(pf, int, int);
int main()
{
int a=3;
fun(a);
return 0;
}
void fun(int n)
{
if(n > 0)
{
fun(--n);
printf("%d,", n);
fun(--n);
}
}
3) What will be the output of the program in 16 bit platform (Turbo C under DOS)?#include<stdio.h>
int main()
{
int fun();
int i;
i = fun();
printf("%d\n", i);
return 0;
}
int fun()
{
_AX = 1990;
}
4) What will be the output of the program?#include<stdio.h>
int main()
{
int fun(int);
int i = fun(10);
printf("%d\n", --i);
return 0;
}
int fun(int i)
{
return (i++);
}
5) What will be the output of the program?#include<stdio.h>
int fun(int(*)());
int main()
{
fun(main);
printf("Hi\n");
return 0;
}
int fun(int (*p)())
{
printf("Hello ");
return 0;
}