The number of tokens in the following C code segment is switch (inputvalue) {…

2025

The number of tokens in the following C code segment is

switch (inputvalue)

{

case 1 : b = c * d ; break ;

default : b = b++ ; break ;

}

Answer: C. 26

  1. A.

    27

  2. B.

    29

  3. C.

    26

  4. D.

    24

Attempted by 139 students.

Show answer & explanation

Correct answer: C

Explore the full course: Mppsc Assistant Professor Computer Science Paper 2

Loading lesson…