which of the following is an invalid variable name in C ? a Register b RegIster c register d register
Answers
Answered by
2
Answer:
d. register
Explanation:
Hopes it help
Answered by
0
Concept:
Keywords are reserved terms in programming that have a specific meaning for the compiler. Keywords are part of the syntax and can't be utilized as an identifier.
Find:
Which of the following is an invalid variable name in C ?
a) Register
b) RegIster
c) register
d) register
Solution:
The register variables are declared using the "register" keyword.
Register variables instruct the compiler to store a variable in a CPU register rather than memory. Variables that are often used are stored in registers and are quicker to access. We cannot obtain addresses of these variables.
As "register" is a keyword in C, therefore we cannot use it as a variable name.
Therefore, "register" is an invalid variable name in C.
Similar questions