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 difference between structure and union in c?
Write a program to print fibonacci series without using recursion?
Explain is it better to bitshift a value than to multiply by 2?
application attempts to perform an operation?
Are pointers integers in c?
What is cohesion in c?
What are global variables?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
Which node is more powerful and can handle local information processing or graphics processing?
What are pointers? What are different types of pointers?
Describe how arrays can be passed to a user defined function
What is the purpose of main() function?
The statement, int(*x[]) () what does in indicate?
What do you mean by dynamic memory allocation in c? What functions are used?
How does sizeof know array size?