Vidyalelo
C Programming · Q12

C Fundamentals

Programming · C Programming · question 12

Q12

Which of the following is not a valid C keyword?

A.
main
B.
if
C.
printf
Answer
D.
for

Answer: Option C

Solution

Answer: Option C
Solution:
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