ExamVeda
Login
Home
This question belongs to C Program C Fundamentals
C Fundamentals
?

Which one of the following is not a reserved keyword for C?

Answer & Solution
Correct Answer: Option C
In C programming, reserved keywords are words that have predefined meanings and cannot be used as identifiers (such as variable names, function names, etc.).

Option A: auto - This is a reserved keyword in C, used for automatic variables.

Option B: case - This is a reserved keyword in C, used in switch statements to specify different cases.

Option C: main - This is not a reserved keyword in C. Although main is a commonly used function name for the entry point of a C program, it is not a reserved keyword.

Option D: default - This is a reserved keyword in C, used in switch statements as a default case.

Option E: register - This is a reserved keyword in C, used to define register variables for fast access.

Therefore, the correct answer is Option C: main.
Examveda
Question posted by Examveda
Community

Join the Discussion

5 Comments
Swa Subramani
Swa Subramani 9 years ago
auto- default storage class and variables declares inside the function.
case- must be unique
register - stored in the CPU register of the processor
default- no associated value , only reserved value
main- c program execution begins and it is not a reserved keyword
Alekhya Malla
Alekhya Malla 9 years ago
because main() can't be used as an identifier so it is a reserved keyword
Pundari Kaksha
Pundari Kaksha 9 years ago
Because main() is a Function.
Shyama Sundar
Shyama Sundar 10 years ago
option C
Ajeet Charan
Ajeet Charan 10 years ago
so..main is not a keyword...??