Floating Point Issues - Find Output of Program :: Discussion


2.What will be the output of the program?
A.2 in 16bit compiler, 4 in 32bit compiler
B.4 in 16bit compiler, 2 in 32bit compiler
C.4 in 16bit compiler, 4 in 32bit compiler
D.2 in 16bit compiler, 2 in 32bit compiler
Answer:  Option  A
Explanation:

sizeof(x) returns the size of x in bytes.
float *p is a pointer to a float.

In 16 bit compiler, the pointer size is always 2 bytes.
In 32 bit compiler, the pointer size is always 4 bytes.

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