Arrays - Find Output of Program :: Discussion


5.What will be the output of the program in Turbo C (under DOS)?
A.1, 2, 3, 4, 5,
B.Garbage value, 1, 2, 3, 4
C.0, 1, 2, 3, 4,
D.2, 3, 4, 5, 6,
Answer:  Option  B
Explanation:

Since C is a compiler dependent language, it may give different outputs at different platforms. We have given the TurboC Compiler (Windows) output.

Please try the above programs in Windows (Turbo-C Compiler) and Linux (GCC Compiler), you will understand the difference better.

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