C Programming - Declarations and Initializations - Discussion
|
|
|
|
Read more:"To err is human; to forgive, divine."
- Alexander Pope
|
| 1. |
Which of the declaration is correct? |
| [A]. |
int length; | [B]. |
char int; | | [C]. |
int long; | [D]. |
float double; |
Answer: Option E
Explanation:
int length; denotes that variable length is int(integer) data type.
char int; here int is a keyword cannot be used a variable name.
int long; here long is a keyword cannot be used a variable name.
float double; here double is a keyword cannot be used a variable name.
So, the answer is int length;(Option A).
|
|
|