Top

Expressions

51.

What is the value of x in this C code?    

void main()
    {
        int x = 4 *5 / 2 + 9;
    }

 

Answer: C

No answer description available for this question.

Enter details here

52.

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

53.

What is the output of this C code?    

void main()
    {
        int x = 4, y, z;
        y = --x;
        z = x--;
        printf("%d%d%d", x,  y, z);
    }

 

Answer: B

No answer description available for this question.

Enter details here

54.

Which among the following is NOT a logical or relational operator?

Answer: D

No answer description available for this question.

Enter details here

55.

What is the value of x after executing the following statement?

int x = 011 | 0x10;

Answer: C

No answer description available for this question.

Enter details here

56.

What is the output of this C code?    

void main()
    {
        int a = 5, b = -7, c = 0, d;
        d = ++a && ++b || ++c;
        printf("\n%d%d%d%d", a,  b, c, d);
    }

 

Answer: D

No answer description available for this question.

Enter details here

57.

Which is not a storage class?

Answer: B

No answer description available for this question.

Enter details here

58.

For the following statement find the values generated for p and q?

int p = 0, q = 1;
p = q++;
p = ++q;
p = q--;
p = --q;

Value of p & q are

Answer: A

No answer description available for this question.

Enter details here

59.

What is the output of this C code?    

void main()
    {
        int a = -5;
        int k = (a++, ++a);
        printf("%d\n", k);
    }

 

Answer: A

No answer description available for this question.

Enter details here

60.

What is the output of this C code? 

   int main()
    {
        int x = -2;
        x = x >> 1;
        printf("%d\n", x);
    }

 

Answer: B

No answer description available for this question.

Enter details here

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