Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Assume int is 4 bytes, char is 1 byte and float is 4 bytes. Also, assume that pointer size is 4 bytes (i.e. typical case)char *pChar;int *pInt;float *pFloat;sizeof(pChar);sizeof(pInt);sizeof(pFloat);What’s the size returned for each of sizeof() operator?(A) 4 4 4(B) 1 4 4(C) 1 4 8(D) None of the above

Answer»