Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (ranjith):

why do we use & in scanf

OpenStudy (anonymous):

Because you are passing an address. You are giving it the address where you want to store the data. All your variables are outside the scope of the function, and the only way for the function to modify one of your variables is to pass it a pointer. Giving it the address of your variable, it can directly store your data into that address without having the variable in its scope.

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
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 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!