what is the output of the following program?
#include<stdio.h>
void main()
{
float x=1.1;
while(x==1.1)
{
printf("\n%f",x);
x=x-0.1;
}
}
Answer Posted / vikram
No output.Since a float variable is compared with double
constant,condition will not satisfy.
if you don't believe,try your hand on it.
| Is This Answer Correct ? | 31 Yes | 3 No |
Post New Answer View All Answers
Why we write conio h in c?
What is extern c used for?
what is the role you expect in software industry?
What is atoi and atof in c?
what is a constant pointer in C
I came across some code that puts a (void) cast before each call to printf. Why?
What does 1f stand for?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Give basis knowledge of web designing ...
Explain how does flowchart help in writing a program?
What is meant by inheritance?
What is the difference between the expression “++a” and “a++”?
What is a example of a variable?
What is conio h in c?
Explain enumerated types.