Question

Question 8 2 pts What is the output of the fllowing program? #inclu <stdio.h> int main int a=2; int b.c b-&a;/suppose address of a is 100*/ c-&b:/suppose address of b is 200 printf ( %u %u %uln, &a, &b, c); printf (%d %d %d %d %d\n, a, (&al, .c, .b. c ) ; return O HTML Editor
0 0
Add a comment Improve this question Transcribed image text
Answer #1

output:

100 200 200
2 2 100 2 2

Note: This is our assumtion, but in computer it generates random addresses for 100 200 200. Ever time this addresses may change.

  • when you compile also it makes warning regarding int type variables....if you use unsigned int, then it wont raise any warnings for you.
  • but, anyway even if its producing warnings , we can execute the program to get the output.
Add a comment
Know the answer?
Add Answer to:
Question 8 2 pts What is the output of the fllowing program? #inclu <stdio.h> int main...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT