Strings - Find Output of Program :: Discussion


6.What will be the output of the program?
A.Error
B.Pak
C.Mcqs
D.Pak Mcqs
Answer:  Option  B
Explanation:

printf("Pak", "Mcqs\n"); It prints "Pak". Because ,(comma) operator has Left to Right associativity. After printing "Pak", the statement got terminated.

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