Automatic variables are variables that are?
Answer: A
No answer description available for this question.
Enter details here
The scope of an automatic variable is:
Answer: D
No answer description available for this question.
Enter details here
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
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
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
Assignment statements assigning value to local static variables are executed only once?
Answer: B
No answer description available for this question.
Enter details here
Which of the following is a correct format for declaration of function?
Answer: A
No answer description available for this question.
Enter details here
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
Which of the following storage class supports char data type?
Answer: D
No answer description available for this question.
Enter details here
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