adplus-dvertising
frame-decoration

Question

Default’ case is mandatory in a switch statement

a.

True

b.

False

c.

May be

d.

Can't say

Posted under Compiler Design

Answer: (b).False

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Default’ case is mandatory in a switch statement

Similar Questions

Discover Related MCQs

Q. A ‘while’ loop may always be converted to an equivalent ‘for’ loop

Q. An if statement may contain compound statements only in the else clause

Q. The statement for(;;) is perfectly valid C statement

Q. The advantage of ‘switch’ statement over ‘if’ is that it leads to more structured program.

Q. What is the max no. of dimensions an array may have

Q. Comment on the 2 arrays regarding P and Q:

int *a1[8];
int *(a3[8]);

P. Array of pointers

Q. Pointer to an array

Q. Comment on the following statement:

int (*a)[7];

Q. Int RollNUm[30[4] is a

Q. In which way can SAM be stored in an array

Q. What is meaning of the following?
Int *ptr[20]

Q. int a[20]
What will be the size of above array elements?

Q. What is the meaning of following declaration?
Int arr[20]

Q. What does the following declaration mean? int (*a)[10] a is

Q. Which of the following gives the memory address of the first element in array tan?

Q. Which of the following correctly accesses the seventh element stored in tan?

Q. Which of the following is a two-dimensional array?

Q. What is the index number of the last element of an array with 29 elements?

Q. Pick the operators that associate from left to right

Q. Pick the operators that associate from the right

Q. Pick the operators that associate from the left