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!
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!