Which storage class is used for the variables that are often required in a program ?
REGISTER
The register class exists precisely for variables accessed very frequently — option 2.
register int i;
What the keyword asks for. Ordinary variables live in memory, so every use costs a load and a store across the data bus. register requests that the variable be kept in one of the CPU's internal registers instead, where access is immediate. For a loop counter touched thousands of times, the saving is real:
| Location | Access time |
|---|---|
| CPU register | One cycle — no bus access |
| Cache | A few cycles |
| Main memory | Tens of cycles |
Two consequences follow from being in a register. First, it is a request and not a command: registers are few, so the compiler may ignore it, in which case the variable behaves as an ordinary automatic. Second — and this part is enforced — the address-of operator cannot be applied to it. &i on a register variable is a compile error, because a CPU register has no memory address. That restriction is the one guaranteed effect of the keyword.
The four storage classes compared.
| Class | Storage | Lifetime | Default value |
|---|---|---|---|
auto | Stack | Block | Garbage |
register | CPU register | Block | Garbage |
static | Data segment | Whole program | Zero |
extern | Data segment | Whole program | Zero |
Why the other options do not fit. static concerns lifetime and visibility — the variable keeps its value between calls — not speed of access, and being in memory it is no faster than auto. auto is the default for locals and says nothing about frequency of use. And EXTENT is not a C keyword at all; the real one is extern, which declares a variable defined in another file.
A modern footnote. Optimising compilers now allocate registers far better than a programmer's guess, using liveness analysis across the whole function, so the keyword is largely obsolete and is deprecated in current C++. Its lasting use is as documentation — and as the exam question's subject.
Hence, the storage class is REGISTER.
The function "isalnum( )" returns a non-zero value if the character is alphanumeric and zero otherwise. What is header file to be used in the main program ?
To read a integer variable, find the correct format given below :
Int m;
Find the correct list, which is the reverse (at all levels) of the given list :
[[4, 7, 8], 2, 9, [19, 6], 20, 3]
(i) 3, 20
(ii) 9, 2
(iii) [6, 19]
(iv) [8, 7, 4]
Which of the following is not an infinite loop ?
(A) int i = 1;
while (1)
{
i++ ;
}
(B) for ( ; ; ) ;
(C) int t = 0, f ;
while (t)
{
f = 1;
}
(D) int y, x = 0 ;
do
{
y = x;
}
while (x == 0);
The three types of loops available in C language are
i. for
ii. while
iii. do-while
Which loops do not operate without testing the condition even once ?
Match the following :
| List – I | List – II |
| a. associativity | i. memory storage |
| b. # define | ii. if-then-else |
| c. auto | iii. operators with equal precedence |
| d. conditional operator | iv. define operator |
Codes :
Assertion (A) : 'C' uses many data types such as integers (short and long) and float etc.
Reason (R) : Conversion specifier used for short unsigned integer is % lu.
Which bitwise operator is suitable for turning off a particular bit in a number ?
Which is not a proper way of array declaration ?
Exponentiation operation in C is carried out as
Read the given figure and find the region representing persons who are educated and employed but not confirmed in job.

The magazine in which Mahatma Gandhi mentioned what he wanted the Constitution to do is:
Which gas shields the surface of the earth from ultraviolet radiation from the sun?
Which event is marked as an Intangible Cultural Heritage of Humanity by UNESCO?
Who has been conferred with the rank of the Commander of the Order of the British Empire in 2018?