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 / ankita sharma

Answer will be yes. we can compare two floating point numbers. as a is having value 0.5 and when it is compared with 0.5 so 1st printf would get executed which is inside if statement. so we would get answer as "yes" on the console window as output.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is graph in c?

1061


Why do we write return 0 in c?

1069


Is c is a middle level language?

1070


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

1061


How do I send escape sequences to control a terminal or other device?

1081


What is function what are the types of function?

1001


What is the difference between printf and scanf in c?

1361


What are comments and how do you insert it in a C program?

1254


What are the features of the c language?

1090


Write a program to show the change in position of a cursor using c

1073


Explain what is the heap?

1059


Is this program statement valid? INT = 10.50;

1162


What is the use of getch ()?

1077


If null and 0 are equivalent as null pointer constants, which should I use?

1225


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1149