...
GATE 1996
December 26, 2023
Question 3361 – Logical-Reasoning
December 26, 2023
GATE 1996
December 26, 2023
Question 3361 – Logical-Reasoning
December 26, 2023

ISRO CS 2020

Question 5
The number of tokens in the following C code segment is

switch(inputvalue)

{

case 1;b=c*d; break;

Default : b = b++ ; break;

}
A
27
B
29
C
26
D
24
Question 5 Explanation: 
Switch1(2 inputvalue3 )4
{5
Case6 17 :8 b9 =10 c11 *12 d13 ;14 break15 ;16
Default17 :18 b19 =20 b21 ++22 ;23 break24 ;25
}26
Correct Answer: C
Question 5 Explanation: 
Switch1(2 inputvalue3 )4
{5
Case6 17 :8 b9 =10 c11 *12 d13 ;14 break15 ;16
Default17 :18 b19 =20 b21 ++22 ;23 break24 ;25
}26

Leave a Reply

Your email address will not be published. Required fields are marked *