Top

Expressions

Answer: B

No answer description available for this question.

Enter details here

102.

Comment on the output of this C code?
   

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

 

Answer: B

No answer description available for this question.

Enter details here

103.

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

Answer: C

No answer description available for this question.

Enter details here

104.

Which is executed quickly?
 

Answer: C

No answer description available for this question.

Enter details here

105.

What is the output of this C code?    

void main()
    {
        int x = 0;
        if (x = 0)
            printf("Its zero\n");
        else
            printf("Its not zero\n");
    }

 

Answer: A

No answer description available for this question.

Enter details here

106.

What is the output of this C code?   

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

 

Answer: C

No answer description available for this question.

Enter details here

107.

What is the output of this C code?   

 int main()
    {
        if (7 & 8)
        printf("Honesty");
            if ((~7 & 0x000f) == 8)
                printf("is the best policy\n");
    }

 

Answer: C

No answer description available for this question.

Enter details here

108.

Which of the following is not a compound assignment operator?

Answer: D

No answer description available for this question.

Enter details here

109.

What is the output of this C code?   

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

 

Answer: D

No answer description available for this question.

Enter details here

110.

What will be the storage class of variable I in the code written below?

#include< stdio>

int main()
{
int I = 10;
printf(“%d”, i);
return 0;
}

 

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