Top

Expressions

1.

A function cannot be defined inside another function

Answer: A

A function cannot be defined inside the another function, but a function can be called inside a another function.

Enter details here

Answer: B

No answer description available for this question.

Enter details here

3.

What will be the output of the following code?

#include< stdio>

int main()
{
extern int a;
static char j = ‘E’;
printf(“%c %d”, ++j, ++a);
return 0;
}

 

Answer: B

No answer description available for this question.

Enter details here

4.

Where will the space be allocated for an automatic storage class variable?

Answer: C

No answer description available for this question.

Enter details here

5.

What will be the output of the following program?

#include< stdio>

Void f(static int*, extern int);
Static int b = 12;
Int main()
{
Static int a[5];
Register int I;
For(I = 0; I < 2> A[i++] = 2 * i++;
F(a, b);
For(I = 0; I < 2> Printf(“%d”, b++);
Return 0;
}
Void f (static int *x, extern int y)
{
Register int I;
For(I = 0; I < 2> *(++x +1) + = 2;
Y + = 2;
}

 

Answer: C

No answer description available for this question.

Enter details here

Loading…