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

Is c is a high level language?

1178


How can I send mail from within a c program?

1011


What is bss in c?

1081


Can you please explain the difference between syntax vs logical error?

1168


How can I remove the trailing spaces from a string?

1059


What is auto keyword in c?

1191


how to execute a program using if else condition and the output should enter number and the number is odd only...

2268


What is the use of bitwise operator?

1109


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2363


Explain what does it mean when a pointer is used in an if statement?

1041


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2172


What will the preprocessor do for a program?

1055


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1359


What is meant by operator precedence?

1126


What happens if header file is included twice?

1126