Variables
- Which is valid C expression?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Space, comma and $ cannot be used in a variable name.
- Which of the following is true for variable names in C?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
According to the syntax for C variable name, it cannot start with a digit.
- Which of the following is not a valid C variable name?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Since only underscore and no other special character is allowed in a variable name, it results in an error.
- C99 standard guarantees uniqueness of _____ characters for external names.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
ISO C99 compiler may consider only first 31 characters for external names.
- Which of the following is not a valid variable name declaration?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: E
int a = 12; is a valid variable name declaration.