Functions - Point Out Errors :: Discussion


2.Point out the error in the program?
A.Error: Prototype declaration
B.No error
C.Error: return statement cannot be used with conditional operators
D.None of above
Answer:  Option  C
Explanation:

In a ternary operator, we cannot use the return statement. The ternary operator requires expressions but not code.

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