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

scanf("%d",&n) what does this means?

OpenStudy (anonymous):

this means get the value from the input stream

OpenStudy (anonymous):

value of n

OpenStudy (rsmith6559):

scanf() gets input in a certain format. "%d" is a mask for integers. &n is the address of a variable named n. Check out scanf and printf.

OpenStudy (anonymous):

scanf() is a function that receives input from the keyboard and stores the input in a variable. %d is a mask for integers and &n is the address for the variable like rsmith6559 said. In other words you are going to read an integer and store it in the variable n.

OpenStudy (anonymous):

@tricia100609 scanf(%d,&n) means: to get a integer{i.e %d} from user{work of scanf()} and to save the value at the address of"n"{work of &n}.

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!