10 Questions
What happens when scanf() encounters whitespace, newline, or EOF?
It stops reading
What is the purpose of using %[^ ]s inside scanf()?
To read entire string
What is the difference between scanf() and gets()?
scanf() is used for any datatype, gets() for string input
What is the purpose of Exercise 3?
To input name and address
What should the output of Exercise 3 be?
You are and living at
What is the difference between Exercise 3 and Exercise 4?
Exercise 3 inputs name and address, Exercise 4 inputs name, address, and age
What is the purpose of Exercise 4?
To input name, address, and age
What should the output of Exercise 4 be?
Your name is , You are living at , You are years old
What is the topic of the next lecture?
Operands and Operators
What does the newline character do?
It brings the cursor to the new line automatically
This quiz covers the different types of input/output functions in C programming, including formatted and unformatted functions. Test your knowledge of getchar, gets, scanf, putchar, puts, and printf.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free