Online C programming exercises


Variable name Value Address
Andy 25 1776
Fred 20 1777
Ted 29 1778

andy=25;
ted = &andy;
fred= *ted;

Which of the following statements are true?

andy == 25
ted == 29
&andy == 1776
ted == 1776
fred==25
fred == 1777
&ted ==29

1,2,3,4
1,3,4,5
1,2,5,7
3,5,7


Next Exercise