#include
int main()
{
float a=5.2;
if(a==5.2)
printf("Equal");
else if(a<5.2)
printf("Less than");
else
printf("Greater than");
return 0;
}
Less than
Equal
Greater than
None of above
A. Less than
5.2 is double constant in c. In c size of double data is 8 byte while a is float variable. Size of float variable is 4 byte.
So double constant 5.2 is stored in memory as:
101.00 11001100 11001100 11001100 11001100 11001100
11001101
Content of variable a will store in the memory as:
101.00110 01100110 01100110
True
False
/ + *
* / +
+ / *
* / + -
24
2
26
None
int ~Country()
void Country()
int ~Country(Country obj)
void ~Country()
do-while
if-else
goto
for
True
False
int x=40;
main(){
int x=20;
printf("
%d",x);
}
40
20
Compilation Error
Garbeg Value
enumeration
iteration
culmination
pass through
the increment should always be ++k
the variable must always be the letter i when using a for loop
there should be a semicolon at the end of the statement
the commas should be semicolons
True
False
True
False
Positive value
Zero
Negative value
None of these
1 byte
4 bytes
8 bytes
16 bytes
abstract
Virtual
Dynamic
Typeid
True
False
void main()
{
int a = 20;
printf("%d\t%d
", ++a, a);
}
21 21
20 21
21 20
20 20
True
False
True
False
91
88
90
89
True
False
What will be output if you will compile and execute the following c code?
#include
int main(){
char c=125;
c=c+10;
printf("%d",c);
return 0;
}
135
+INF
-121
-135
True
False
True
False
4
2
8
10
True
False
putchar(65)
putchar('x')
putchar("x")
')
253
254
255
256
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
[]
{}
()
None of the above