Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is a method in c?

1152


Is c easy to learn?

988


What is the difference between a function and a method in c?

1086


Can a void pointer point to a function?

1025


What are void pointers in c?

997


How will you write a code for accessing the length of an array without assigning it to another variable?

1050


How a string is stored in c?

1074


Can the curly brackets { } be used to enclose a single line of code?

1173


Why is sizeof () an operator and not a function?

1032


What is function prototype in c with example?

1088


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2882


Explain the ternary tree?

1026


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1768


How can I do peek and poke in c?

1082


Here is a good puzzle: how do you write a program which produces its own source code as output?

1105