Functions - Point Out Correct Statements :: Discussion


1.Which of the following statements are correct about the program?
A.It prints garbage values infinitely
B.Runs infinitely without printing anything
C.Error: main() cannot be called inside printf()
D.No Error and print nothing
Answer:  Option  B
Explanation:

In printf("%p\n", main()); it calls the main() function and then it repeats infinetly, untill stack overflow.

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