Which of the following is not a valid C keyword?
A. main
B. if
C. printf
D. for
Answer: Option C
Solution(By Examveda Team)
Among the options provided, Option C: printf is not a valid C keyword.C keywords are reserved words that have special meanings in the language, and they cannot be used as identifiers (such as variable names or function names). Keywords like 'main,' 'if,' and 'for' are all valid C keywords with specific purposes in the language.
However, 'printf' is not a keyword; it's a standard C library function used for outputting formatted text. It can be used as a function name in C code.
So, the correct answer is:
Option C: printf
Related Questions on C Fundamentals
What is the primary purpose of a function prototype in C?
A. Declare a variable
B. Declare a function
C. Define a function
D. Assign a value
What is the correct syntax for declaring a variable in C?
A. int variable_name;
B. variable_name = 5;
C. variable_name int;
D. int = variable_name;
Join The Discussion