The data type of the variable “var1” declared in the following ‘C’ language…
2017
The data type of the variable “var1” declared in the following ‘C’ language statement is:
unsigned var1;
Answer: A. int — The correct answer is Option A (int). In C programming, using the type modifier unsigned alone implicitly defaults to an unsigned int data type. Therefore,…
- A.
int
- B.
double
- C.
char
- D.
float
Attempted by 1217 students.
Show answer & explanation
Correct answer: A
The correct answer is Option A (int). In C programming, using the type modifier unsigned alone implicitly defaults to an unsigned int data type. Therefore, the declaration unsigned var1; allocates memory size and storage behavior identical to a standard unsigned integer.
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…