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...

#include<stdio.h>
#include<conio.h>
void main()
{
float a;
clrscr();
a=0.5;
if(a==0.5)
printf("yes");
else
printf("no");
getch();
}

Answer Posted / sandeep

HI froends this is sandeep,
Coming to the question :
First of all we should know that in c language:
integers by default are treated as int,
and numbers with decimal point as double.
so int the ques tion "a is float",but "0.5 is double by default" and "double > float by default"
so "a==0.5" turns out to be false,
so else statement will be executed


output:no

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a void * in c?

1089


What are types of structure?

1137


What does c mean in basketball?

1008


Which is best book for data structures in c?

1103


Explain 'bit masking'?

1098


Which driver is a pure java driver

1632


What is main () in c?

1083


plz let me know how to become a telecom protocol tester. thank you.

2203


what is the structure pointer?

2139


What are the difference between a free-standing and a hosted environment?

1304


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2591


Is there a way to compare two structure variables?

1134


What is the difference between printf and scanf )?

1112


Can a local variable be volatile in c?

1013


Did c have any year 2000 problems?

1120