C Input and Output
C provides functions such as printf() and scanf() for basic input and output.
printf()
Used to display output.
printf("Hello");
scanf()
Used to take input from the user.
int age;
scanf("%d", &age);
The & operator is used with scanf() for variables such as integers because scanf needs the variable's address.