Control Instructions - Point Out Errors :: Discussion


7.Point out the error, if any in the program?
A.Error: in case 1*2+4 statement
B.Error: No default specified
C.Error: in switch statement
D.No Error
Answer:  Option  D
Explanation:

Constant expression are accepted in switch

It prints "Case1"

Tutorial Link:
Published by:Michael Daani

Comments are not available

Post your comments here:

Optional

Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers