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 / vignesh1988i
for the first time the loop will be true and it will print as 1.100000 , after reading the next line x will be 1.0, so again when it comes into while loop 1.000000 not equal to 1.100000 so it will come outside the loop
| Is This Answer Correct ? | 4 Yes | 20 No |
Post New Answer View All Answers
What is non linear data structure in c?
How can I call a function with an argument list built up at run time?
Why do we use c for the speed of light?
What is the purpose of main( ) in c language?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is wrong with this statement? Myname = 'robin';
Write a program for Overriding.
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Why should I prototype a function?
Why cant I open a file by its explicit path?
Write a program to show the change in position of a cursor using c
What does. int *x[](); means ?
difference between object file and executable file
What is the use of sizeof () in c?
What is a function in c?