Control Instructions - Point Out Errors :: Discussion


8.Point out the error, if any in the while loop?
A.No Error: prints "It works"
B.Error: fun() cannot be accessed
C.Error: goto cannot takeover control to other function
D.No Error
Answer:  Option  C
Explanation:

 label is used as the target of a goto statement, and that label must be within the same function as the goto statement.

Syntax: goto <identifier> ;
Control is unconditionally transferred to the location of a local label specified by <identifier>.

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