C Preprocessor - Point Out Errors :: Discussion


2.Point out the error in the program?
A.The number is odd
B.Garbage values
C.Error: unexpected end of file because there is no matching #endif
D.None of above
Answer:  Option  C
Explanation:

The conditional macro #if must have an #endif. In this program there is no #endif statement written.

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