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 / ravi kant singh

Answer is it will print no.....because you can not compare two floating point number upto precision 

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the red-black trees?

1131


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2180


What is function prototype in c language?

1031


What is a class c rental property?

1093


Explain how does flowchart help in writing a program?

1117


show how link list can be used to repersent the following polynomial i) 5x+2

2303


What is the usage of the pointer in c?

1123


What is null pointer in c?

989


what is stack , heap ,code segment,and data segment

2696


How can I implement a delay, or time a users response, with sub-second resolution?

1076


What are the loops in c?

995


What is the difference between constant pointer and constant variable?

1224


What are the complete rules for header file searching?

1077


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2109


What is the use of typedef in c?

1031