Ask your own question, for FREE!
Computer Science 27 Online
OpenStudy (anonymous):

difference b/w printf("%u",x) and printf("%u",&x)

OpenStudy (kainui):

COMPILE IT AND FIND OUT!

OpenStudy (anonymous):

what???

OpenStudy (kainui):

Run the code

OpenStudy (rsmith6559):

In this context, the ampersand means "the address of". So basically, the first one is the value of x and the second one is the address of x, a pointer.

OpenStudy (kriyen):

"&x" = address of x (pointer) just "x" = value of x

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
mintyy: where and how can i get sub?
8 hours ago 12 Replies 1 Medal
EdwinJsHispanic: THIS IS FOR EXOTIC
8 hours ago 17 Replies 4 Medals
breiadabrattzz: I need help to make a theme -
9 hours ago 14 Replies 3 Medals
curriful: Black QuestionCove Theme (WIP)
15 hours ago 20 Replies 1 Medal
EdwinJsHispanic: imma sing notion
1 day ago 13 Replies 0 Medals
EdwinJsHispanic: another song for someone
1 day ago 66 Replies 5 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!