Top

C Constants

11.

enum types are processed by

Answer: A

No answer description available for this question.
 

Enter details here

12.

enum types are processed by?

Answer: A

None

Enter details here

13.

If the declaration unsigned c:5; is replaced by unsigned : 6; then

Answer: C

No answer description available for this question.
 

Enter details here

Answer: C

No answer description available for this question.

Enter details here

15.

If a variable can take only integral values from 0 to n. where n is a constant integer, then the variable can be represented as a bit-field whose width is the integral part of (the log in the answers arc to the base 2)

Answer: A

No answer description available for this question.
 

Enter details here

16.

If a is an unsigned integer variable whose value is hx6db7, what is the value of -a?

Answer: D

No answer description available for this question.
 

Enter details here

17.

What is the output of this C code?

int main()
{
printf("AllIndiaExams\r\nclass\n");
return 0;
}

 

Answer: B

rn combination makes cursor move to nextline.

Enter details here

18.

For the following code snippet:
char *str = “AllIndiaExams.in\0? “training classes”;
The character pointer str holds reference to string:

Answer: C

’\0' is accepted as a char in the string. Even though strlen will give length of string “AllIndiaExams.in”, in memory str is pointing to entire string including training classes”

Enter details here

Answer: A

No answer description available for this question.
 

Enter details here

20.

The value of an automatic variable that is declared but not initialized will be

Answer: C

No answer description available for this question.
 

Enter details here

Loading…
Tags: C Constants Questions and Answers || C Constants MCQ Questions and Answers || C Constants GK Questions and Answers || C Constants GK MCQ Questions || C Constants Multiple Choice Questions and Answers || C Constants GK || GK on C Constants || C Programming Questions and Answers || C Programming MCQ Questions and Answers || C Programming GK Questions and Answers || GK on C Programming