x + y' is a keyword
3 and 20 are constants
3z is a constant
y is a variable and z is a constant
B. 3 and 20 are constants
pointers to strings
string to pointer
both
They begin with a hash symbol
They are processed by a preprocessor
They form an integral part of the code
They have to end with a semi colon
for
while
do-while
while & do-while
True
False
True
False
float
string
int
wchar_t
True
False
An Editor
A compiler
An operating system
None of the above
while (1)
{i++;}
for( ; ; );
while (true)
{false = 1;}
do
{y = x;}
while (x==0);
True
False
True
False
void main()
{
int a = 1, b=2;
int *ip;
ip=&a;
b=*ip;
printf("%d", b);
}
2
1
100
0
#include
int main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr);
return 0;
}
1
64
320
Compiler Error
True
False
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.
True
False
True
False
True
False
void main()
{
int a = 20;
printf("%d\t%d
", ++a, a);
}
21 21
20 21
21 20
20 20
True
False
The smallest individual units of c program
The basic element recognized by the compiler
The largest individual units of program
A & B Both
abstract
Virtual
Dynamic
Typeid
True
False
void main()
{
char a = 'B';
switch (a)
{
case 'A' : printf("a");
case 'B' : printf("b");
default : printf("c");
}
B
b
bca
bc
True
False
Keywords have some predefine meanings and these meanings can be changed.
Keywords have some unknown meanings and these meanings cannot be changed.
Keywords have some predefine meanings and these meanings cannot be changed.
None of the above
Simple Template Library
Standard Template Library
Static Type Library
Single Type-based Library
3.4e38 to 3.4e38
32767 to 32768
32768 to 32767
32668 to 32667
3
4
5
infinite
What will be output if you will compile and execute the following c code?
#include
#define x 5+2
int main(){
int i;
i=x*x*x;
printf("%d",i);
return 0;
}
27
343
233
Compiler Error