Which of the following is the simplest way to read a character in C program at runtime?
Answers
Answered by
1
Answer:
In this tutorial, you will learn to use scanf() function to take input from the user, and printf() function to display output to the user.
How does this program work?
All valid C programs must contain the main() function. The code execution begins from the start of the main() function.
The printf() is a library function to send formatted output to the screen. The function prints the string inside quotations.
To use printf() in our program, we need to include stdio.h header file using the #include <stdio.h> statement.
The return 0; statement inside the main() function is the "Exit status" of the program. It's optional.
Explanation:
Similar questions