I'm just starting out learning C and wanted to ask some very elementary questions. I don't have any programming background at all. I'm just at the very start of a tutorial (http://www.cprogramming.com/tutorial/c-tutorial.html) and there's some things it doesn't explain. Like, for example, in this following introductory simple program…
Question: why does he use "%d" – why d and not another letter? I understand the % is the modulo operand, meaning remainder, but why d? I understand that stdio.h imports a library/glossary of terms to use, such as printf and so on… is %d the same as that? :
#include <stdio.h>
int main()
{
int this_is_a_number;
printf( "Please enter a number: " );
scanf( "%d", &this_is_a_number );
printf( "You entered %d", this_is_a_number );
getchar();
return 0;
}