Q1. What will be output:
void main()
{
float a=5e40;
clrscr();
printf("%f",a);
getch();
}
Output: +INF
Explanation: 5e40 is beyond the range of float so output is plus infinity
Q2.What will be output:
void main()
{
float a=5e4;
clrscr();
printf("%f",a);
getch();
}
output :50000.000000
Explanation: 5e4 is in exponential form is (5*10^4)
The Vera Zvonareva Picture
-
*Vera Zvonareva*
NEW YORK CITY, NEW YORK
*V. ZVONAREVA/K. Kanepi6-3, 7-5*
THE MODERATOR: Questions, please.
*Q. Crazy, crazy kind of weather out...
13 years ago
No comments:
Post a Comment