Ask your own question, for FREE!
Computer Science 73 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!
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!