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


Please Help Members By Posting Answers For Below Questions

Explain what are global variables and explain how do you declare them?

862


Is c weakly typed?

783


What is graph in c?

836


Wt are the Buses in C Language

2987


What is the difference between call by value and call by reference in c?

919


What is a spanning Tree?

1281


What is the right way to use errno?

849


what is use of malloc and calloc?

1695


What are dangling pointers? How are dangling pointers different from memory leaks?

942


Why enum is used in c?

722


What is double pointer in c?

779


What is typedf?

900


How can I automatically locate a programs configuration files in the same directory as the executable?

889


What are the advantages of the functions?

890


How can I generate floating-point random numbers?

823