?
Which of the following is not a valid C keyword?
Answer & Solution
Correct Answer:
Option
C
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
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
Join the Discussion
Login to post a comment or share your explanation.
Login