Welcome Guest | Sign in | Register
Inbuilt Functions - Discussion Page For Q.10699 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Inbuilt Functions > Questions and Answers

Q: What will be output of following c code?
#include
int main(){
int *p1,**p2;
double *q1,**q2;
printf("%d %d ",sizeof(p1),sizeof(p2)); printf("%d %d",sizeof(q1),sizeof(q2));
getch();
return 0;
}  
A. 1 2 4 8 B. 2 4 4 8
C. 2 4 2 4 D. 2 2 2 2
E. 2 2 4 4

Answer and Explanation

Answer:2 2 2 2

Explanation:
Size of any type of pointer is 2 byte (In case of near pointer)

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.