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

output is no beacause the default datatype of a floatingpoint value is "double",and doubles are always bigger than floats
so in above a is "float" where 0.5 is double

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 const pointer?

1132


Is c is a high level language?

1196


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1309


What is the role of this pointer?

1077


What is #pragma statements?

1104


What are runtime error?

1139


Why c is called procedure oriented language?

1059


What is volatile c?

1024


What are local static variables?

1158


please give me some tips for the placement in the TCS.

2116


Explain how can I prevent another program from modifying part of a file that I am modifying?

1099


What is the use of volatile?

1089


Why is it that not all header files are declared in every C program?

1229


Why do we use null pointer?

1073


What is meant by high-order and low-order bytes?

1051