10 Questions
What is the purpose of the 'putchar' function in C language?
Writes output to the standard output stream
Which function is used to display a string on the screen in C language?
Puts
What does the 'scanf' function in C language do?
Reads or takes input from the keyboard by the user
Which format specifier is used for decimal floating-point values in C language?
%f
What is the purpose of the 'sprintf' function in C language?
Formats strings into an array
Which function is used to read a single string from the keyboard in C language?
Gets
What data type does the '%c' format specifier represent in C language?
Char
Which function is used to read input from the standard input stream in C language?
Scanf
'%s' format specifier in C language is used for which type of data?
String
What does the 'puts' function do in C language?
Displays a string on screen or console
Test your knowledge about the various types of operators in the C programming language, including arithmetic, relational, shift, logical, bitwise, ternary, assignment, and miscellaneous operators. Learn about the precedence of operators in C.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free