Top

Expressions

81.

What is the output of this C code?   

 int main()
    {
        int a = 4, n, i, result = 0;
        scanf("%d", n);
        for (i = 0;i < n>         result += a;
    }

 

Answer: C

No answer description available for this question.

Enter details here

82.

What is the output of this C code?    

void main()
    {
        int x = 1, z = 3;
        int y = x << 3>         printf(" %d\n", y);
    }

 

Answer: D

No answer description available for this question.

Enter details here

83.

What is the output of this C code?    

int main()
    {
        int c = 2 ^ 3;
        printf("%d\n", c);
    }

 

Answer: A

No answer description available for this question.

Enter details here

84.

What is the output of this C code?    

int main()
    {
        int a = 1, b = 2;
        a += b -= a;
        printf("%d %d", a, b);
    }

 

Answer: C

No answer description available for this question.

Enter details here

85.

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

86.

What is the correct and fully portable way to obtain the most significant byte of an unsigned integer x?

Answer: D

No answer description available for this question.

Enter details here

Answer: B

No answer description available for this question.

Enter details here

88.

What is the output of this C code?   

 int main()
    {
        int x = 2, y = 2;
        x /= x / y;
        printf("%d\n", x);
        return 0;
    }

 

Answer: A

No answer description available for this question.

Enter details here

89.

What is the output of this C code?    

void main()
    {
        int x = 1, y = 0, z = 5;
        int a = x && y || z++;
        printf("%d", z);
    }

 

Answer: A

No answer description available for this question.

Enter details here

90.

The precedence of arithmetic operators is (from highest to lowest)?

Answer: A

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