Function - Study Mode

[#136] What will be the output of the following C code? #include <stdio.h>
int main()
{
void foo(), f()

f()

}
void foo()
{
printf("2 ")

}
void f()
{
printf("1 ")

foo()

}
Correct Answer

(B) 1 2

[#137] What will be the output of the following C code? #include <stdio.h>
void main()
{
m()

void m()
{
printf("hi")

}
}
Correct Answer

(B) Compile time error

[#138] What will be the output of the following C code? #include <stdio.h>
int main()
{
void foo()

printf("1 ")

foo()

}
void foo()
{
printf("2 ")

}
Correct Answer

(A) 1 2

[#139] What will be the output of the following C code? #include <stdio.h>
static int x = 5

void main()
{
int x = 9

{
x = 4

}
printf("%d", x)

}
Correct Answer

(C) 4

[#140] What is the problem in the following C declarations? int func(int)

double func(int)

int func(float)

Correct Answer

(D) All of the mentioned