hi every one, can anyone explain to me the meaning of this code and what does %d means, ans also &no on this,
scanf("%d",&no);
thanks,
A scanf statement is used to accept input. It has 2 parameters -
1st - Format Specifier : it tells the compiler in what format input is to be stored.
various formats may be "%d "-> for integer , "%c" , for character "%f" for
floats.
2nd - parameter is the address of memory where your input is two be stored.
Like your 'no' should be a variable and '&' is "address of operator" means it
is giving you address of no variable.
So we can say that what this state is that store an integer at memory location of "no" variable.
You can have more details of format specification here
Format Specification