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
What is a method in c?
Is c easy to learn?
What is the difference between a function and a method in c?
Can a void pointer point to a function?
What are void pointers in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
How a string is stored in c?
Can the curly brackets { } be used to enclose a single line of code?
Why is sizeof () an operator and not a function?
What is function prototype in c with example?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
Explain the ternary tree?
why programs in c are running with out #include
How can I do peek and poke in c?
Here is a good puzzle: how do you write a program which produces its own source code as output?