Top

Functions

Answer: A

No answer description available for this question.

Enter details here

Answer: D

No answer description available for this question.

Enter details here

3.

Functions can be called either by value or reference

Answer: A

True, A function can be called either call by value or call by reference.

Enter details here

4.

What is the output of the below code snippet?

#include

main() 
{
   unsigned x = 5, y=&x, *p = y+0; 

   printf("%u",*p);
}

 

Answer: D

5, as p holds the address of x which is y+0

Enter details here

5.

What is the output of this C code?
 

void m();
void n()
{
m();
}
void main()
{
void m()
{
printf("hi");
}
}

 

Answer: B

No answer description available for this question.

Enter details here

6.

Assignment statements assigning value to local static variables are executed only once?

Answer: B

No answer description available for this question.
 

Enter details here

Answer: A

No answer description available for this question.

Enter details here

8.

What is the output of this C code?

void foo();
int main()
{
void foo();
foo();
return 0;
}
void foo()
{
printf("2 ");
}

 

Answer: B

No answer description available for this question.

Enter details here

9.

Which of the following storage class supports char data type?

Answer: D

No answer description available for this question.
 

Enter details here

10.

What is the output of this C code?

int main()
{
void foo(), f();
f();
}
void foo()
{
printf("2 ");
}
void f()
{
printf("1 ");
foo();
}

 

Answer: B

No answer description available for this question.

Enter details here

Loading…
Tags: Functions Questions and Answers || Functions MCQ Questions and Answers || Functions GK Questions and Answers || Functions GK MCQ Questions || Functions Multiple Choice Questions and Answers || Functions GK || GK on Functions || C Programming Questions and Answers || C Programming MCQ Questions and Answers || C Programming GK Questions and Answers || GK on C Programming