Top

Expressions

91.

What is the output of this C code?    

void main()
    {
        int x = 97;
        int y = sizeof(x++);
        printf("X is %d", x);
    }

 

Answer: A

No answer description available for this question.

Enter details here

92.

What is the output of this C code? 

   int main()
    {
        if (~0 == 1)
            printf("yes\n");
        else
            printf("no\n");
    }

 

Answer: B

No answer description available for this question.

Enter details here

93.

Which of the following statement is correct about the code snippet given below?

#include < stdio>
int main()
{
float z = 12.35, c = 10;
if( ++z -z)
c += z;
else
c - = z;
printf( “%f %f”, z, c);
return 0;
}

 

Answer: A

No answer description available for this question.

Enter details here

94.

What is the output of this C code?    

int main()
    {
        int i = 0;
        int j = i++ + i;
        printf("%d\n", j);
    }

 

Answer:

Enter details here

95.

What is the output of this C code?    

int main()
    {
        int a = 20;
        double b = 15.6;
        int c;
        c = a + b;
        printf("%d", c);
    }

 

Answer: A

No answer description available for this question.

Enter details here

96.

What is the output of this C code?

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

 

Answer: A

No answer description available for this question.

Enter details here

97.

What will be the output of the following code snippet?
 

Y = 5;
if (! Y > 10)
X = Y + 3;
else
X = Y + 10;

printf(“ X = %d Y = %d”, X, Y);

 

Answer: A

No answer description available for this question.

Enter details here

98.

Which of the following statement is correct about the code snippet given below?
 

num = 5;
printf( “%d”, ++num++ );

 

Answer: C

No answer description available for this question.

Enter details here

99.

What is the output of this C code?    

int main()
    {
        unsigned int a = 10;
        a = ~a;
        printf("%d\n", a);
    }

 

Answer: C

No answer description available for this question.

Enter details here

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