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
Explain what are global variables and explain how do you declare them?
Is c weakly typed?
What is graph in c?
Wt are the Buses in C Language
What is the difference between call by value and call by reference in c?
What is a spanning Tree?
What is the right way to use errno?
what is use of malloc and calloc?
What are dangling pointers? How are dangling pointers different from memory leaks?
Why enum is used in c?
What is double pointer in c?
What is typedf?
How can I automatically locate a programs configuration files in the same directory as the executable?
What are the advantages of the functions?
How can I generate floating-point random numbers?