Examveda
Examveda

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

This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals