Top

Expressions

61.

What is the output of this C code?

void main()
    {
        int x = 4.3 % 2;
        printf("Value of x is %d", x);
    }

 

Answer: D

No answer description available for this question.

Enter details here

62.

What is the type of the below assignment expression if x is of type float, y is of type int?
        y = x + y;

Answer: A

No answer description available for this question.

Enter details here

63.

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

64.

What is the value of X in the sample code given below?

double X; X = ( 2 + 3) * 2 + 3;

Answer: B

No answer description available for this question.

Enter details here

65.

What is the output of this C code?    

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

 

Answer: A

No answer description available for this question.

Enter details here

66.

What is the output of this C code?   

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

 

Answer: A

No answer description available for this question.

Enter details here

67.

Which of the following is an invalid assignment operator?

Answer: D

No answer description available for this question.

Enter details here

68.

What will be the output of the following program?

#include < stdio>

static int y = 1;
int main()
{
static int z;
printf(“%d %d”, y, z);
return 0;
}

 

Answer: C

No answer description available for this question.

Enter details here

69.

What is the output of this C code?    

int main()
    {
        int a = 10, b = 5, c = 3;
        b != !a;
        c = !!a;
        printf("%d\t%d", b, c);
    }

 

Answer: A

No answer description available for this question.

Enter details here

70.

What is the output of this C code?    

void main()



    {
        1 < 2>     }

 

Answer: D

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