What will happen after compiling and running following code?
main()
{
printf("%p", main);
}
1 Crore+ students have signed up on EduRev. Have you? Download the App |
Determine output:
main()
{
int i = abc(10);
printf("%d", --i);
}
int abc(int i)
{
return(i++);
}
What is the result of compiling and running this code?
main()
{
char string[] = "Hello World";
display(string);
}
void display(char *string)
{
printf("%s", string);
}
What will be the output of the following program code?
main()
{
static int var = 5;
printf("%d ", var--);
if(var)
main();
}
What will be printed when this program is executed?
int f(int x)
{
if(x <= 4)
return x;
return f(--x);
}
void main()
{
printf("%d ", f(7));
}
Which of the following function calculates the square of 'x' in C?
When a function is recursively called all the automatic variables are stored in a ..........
What is the output of this C code?
int main()
{
void foo();
void f()
{
foo();
}
f();
}
void foo()
{
printf("2 ");
}
What is the output of this C code?
void m()
{
printf("hi");
}
void main()
{
m();
}
10 videos|13 docs|15 tests
|
10 videos|13 docs|15 tests
|