An array is a collection of variables that are of the dissimilar data type.
An array is a collection of variables that are of the same data type.
An array is not a collection of variables that are of the same data type.
None of the above.
B. An array is a collection of variables that are of the same data type.
delete
concatenate
compare
none of the above
?,-
?,:
++<--
none of the above
void main()
{
char a = 'B';
switch (a)
{
case 'A' : printf("a");
case 'B' : printf("b");
default : printf("c");
}
B
b
bca
bc
main()
{
xyz: goto abc;
printf("Hello");
abc: printf("World");
goto xyz;
}
Infinite loop
Hello World
World Hello
Compilation error
True
False
True
False
True
False
#define sqr(x= x*x)
main()
{
int a = 10, b = 5;
printf("%d, %d", sqr(a+b),sqr(++a));
}
77, 121
225, 121
77< 144
Compilation error
the question mark should be an equal sign
the first semicolon should be a colon
there are too many variables in the statement
the conditional operator is only used with apstrings
float a =123.56;
char ch ='T' * 'A';
char ch ='T' *20;
3 +a = b;
True
False
break
continue
exit
All of the above
True
False
True
False
Positive value
Zero
Negative value
None of these
string.h
strings.h
text.h
strcmp.h
float
string
int
wchar_t
True
False
True
False
the return 0; statement
the first statement after the loop
the statement following the continue statement
the next iteration of the loop
main()
{
int a = 0;
for (; i = 0; i++)
printf("%d", a);
}
0
Nothing will be displayed
Infinite loop
None of the above
Type definitions (typedefs)
Class definitions
Function definitions
Template definitions
[]
{}
()
None of the above
void main()
{
static int a = 1, b, c;
if (a>=2) b=2; c=3;
printf("%d\t%d", b,c);
}
2 3
0 3
0 0
2 0
int x=40;
main(){
int x=20;
printf("
%d",x);
}
40
20
Compilation Error
Garbeg Value
True
False
int ~Country()
void Country()
int ~Country(Country obj)
void ~Country()
True
False
True
False
pointers to strings
string to pointer
both