Pointers - Find Output of Program :: Discussion


9.What will be the output of the program if the size of pointer is 4-bytes?
A.2, 1
B.2, 2
C.4, 1
D.4, 2
Answer:  Option  C
Explanation:

1. In TurboC, the output will be 2, 1 because the size of the pointer is 2 bytes in 16-bit platform.
2. But in Linux, the output will be 4, 1 because the size of the pointer is 4 bytes.
3. This difference is due to the platform dependency of C compiler.

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