Top

Expressions

21.

Which of the following is the better approach to do the operation i = i * 16?

Answer: B

No answer description available for this question.

Enter details here

22.

extern int s;
int t;
static int u;

main()
{

}

Which of s, t and u are available to a function present in another file?

Answer: A

No answer description available for this question.

Enter details here

23.

What is the value of the following expression?

i = 1;
i < < 1>

Answer: A

No answer description available for this question.

Enter details here

24.

Which of the following is not an arithmetic operation?

Answer: D

No answer description available for this question.

Enter details here

25.

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

#include < stdio>
int main()
{
int n = 12, k;
printf(“%d”, (k = sizeof( n + 12.0))++);
return 0;
}

 

Answer: C

No answer description available for this question.

Enter details here

26.

What is the output of this C code?    

int main()
    {
        int i = 10;
        int *p = &i;
        printf("%d\n", *p++);
    }

 

Answer: A

No answer description available for this question.

Enter details here

27.

What is the output of this C code?    

void main()
    {
        int a = 5;
        int b = ++a + a++ + --a;
        printf("Value of b is %d", b);
    }

 

Answer: D

No answer description available for this question.

Enter details here

28.

What is the output of the following program?

#include< stdio>

int main()
{
static int a = 3;
printf(“%d”, a --);
return 0;
}

 

Answer: C

No answer description available for this question.

Enter details here

Answer: A

No answer description available for this question.

Enter details here

30.

Which of the following statement are correct?

(i) The maximum value a variable can hold depends upon its storage class.
(ii) By default all variables enjoy a static storage class.

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