Question: What is the output of this C program? Explain. #include int main(void) { char x = 100; double y = 3.1415926; char *p =

 What is the output of this C program? Explain. #include int main(void)  

What is the output of this C program? Explain. #include int main(void) { char x = 100; double y = 3.1415926; char *p = &x; double *q=&y; printf("p is %d, q is %d.", sizeof(p), sizeof(q)); return 0;

Step by Step Solution

3.46 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer The output of the given C program is p is 8 q is 8 Explanation char x 100 de... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!