What will be the output of the following C code?
#include <stdio.h>
void foo();
int main()
{
void foo();
foo();
return 0;
}
void foo()
{
printf("2 ");
}
What will be the output of the following C code?
#include <stdio.h>
void foo();
int main()
{
void foo(int);
foo(1);
return 0;
}
void foo(int i)
{
printf("2 ");
}
What will be the output of the following C code?
#include <stdio.h>
void foo();
int main()
{
void foo(int);
foo();
return 0;
}
void foo()
{
printf("2 ");
}
What will be the output of the following C code?
#include <stdio.h>
void m()
{
printf("hi");
}
void main()
{
m();
}
What will be the output of the following C code?
#include <stdio.h>
void m();
void n()
{
m();
}
void main()
{
void m()
{
printf("hi");
}
}
What will be the output of the following C code?
#include <stdio.h>
void main()
{
m();
void m()
{
printf("hi");
}
}
What will be the output of the following C code?
#include <stdio.h>
void main()
{
m();
}
void m()
{
printf("hi");
m();
}
What will be the output of the following C code?
#include <stdio.h>
void main()
{
static int x = 3;
x++;
if (x <= 5)
{
printf("hi");
main();
}
}
Which of the following is a correct format for declaration of function?
Which of the following function declaration is illegal?
Which function definition will run correctly?
The value obtained in the function is given back to main by using ________ keyword.
What will be the output of following program ?
#include <stdio.h>
int main()
{
int var=100;
{
int var=200;
printf("%d...",var);
}
printf("%d",var);
return 0;
}