Which is not a proper way of array declaration ?
int a(25) ;
C uses square brackets for arrays, never parentheses, so int a(25); is the improper declaration — option 2.
What the compiler makes of it. Parentheses after an identifier mean a function, not an array. int a(25); is therefore parsed as a function declaration, and since 25 is a constant rather than a type name it is rejected as a syntax error. The mistake usually comes from BASIC or FORTRAN, where A(25) is the normal way to subscript an array.
| Declaration | Verdict |
|---|---|
int num[6] = {…6 values…} | ✓ Size stated, and the initialiser matches |
int a(25); | ✗ Parentheses are for functions |
int n[] = {…} | ✓ Size inferred from the initialiser |
float press[] = {…} | ✓ Same rule; negative values are fine |
Why options 3 and 4 are legal despite the empty brackets. When an array is declared with an initialiser, the size may be omitted and the compiler counts the elements — six in option 3, four in option 4. This is not merely permitted but preferred, since it cannot go out of step with the list. Writing the size explicitly and then changing the initialiser is the classic way to create an off-by-one bug; using sizeof(n)/sizeof(n[0]) to obtain the count keeps everything consistent.
The empty brackets are allowed only with an initialiser. int n[]; on its own is incomplete — the compiler has no way to know how much storage to reserve. That is the one restriction on the form.
What the correct declaration establishes. int num[6] reserves six contiguous int-sized slots, indexed 0 to 5. C performs no bounds checking whatever, so num[6] compiles happily and reads whatever memory lies beyond the array — the source of a large share of real-world security defects. The array name itself decays to a pointer to the first element in almost every expression, which is why an array passed to a function arrives as a pointer and its size must be passed alongside.
Hence, the improper declaration is int a(25);
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 storage class is used for the variables that are often required in a program ?
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?