Global variables are:
Answer: B
No answer description available for this question.
Enter details here
What is the output of this C code?
void main()
{
static int x;
printf("x is %d", x);
}
Answer:
Enter details here
The output of the code below is
int *m()
{
int *p = 5;
return p;
}
void main()
{
int *k = m();
printf("%d", k);
}
Answer: A
No answer description available for this question.
Enter details here
Is initialization mandatory for local static variables?
Answer: B
No answer description available for this question.
Enter details here
What is the output of this C code?
int x = 5;
void main()
{
int x = 3;
printf("%d", x);
{
x = 4;
}
printf("%d", x);
}
Answer: D
No answer description available for this question.
Enter details here
Functions cannot return a floating point number
Answer: B
No answer description available for this question.
Enter details here
What is the output of this C code?
double foo();
int main()
{
foo();
return 0;
}
foo()
{
printf("2 ");
return 2;
}
Answer: B
No answer description available for this question.
Enter details here
Names of functions in two different files linked together must be unique
Answer: A
True, If two function are declared in a same name, it gives "Error: Multiple declaration of function_name())".
Enter details here
What is the output of this C code?
double i;
int main()
{
printf("%g\n",i);
return 0;
}
Answer: B
No answer description available for this question.
Enter details here