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

int main(){
float f=8.0;
if(f==8.0)
printf("good");
else
printf("bad");
}
what is the answere and explain it?

Answer Posted / jayaraj.s

good is the result. because we declare and compare the same
value in the program.so alwaye if condition is true. we no
need to put else condition for these type of comparisions.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What should malloc() do?

1152


How can I open files mentioned on the command line, and parse option flags?

1057


What is a 'null pointer assignment' error?

1199


What is the use of a ‘’ character?

1064


Should a function contain a return statement if it does not return a value?

1063


What are the parts of c program?

1089


How can I access an I o board directly?

1079


Write a program to check palindrome number in c programming?

1002


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1062


Why clrscr is used in c?

1002


Explain can you assign a different address to an array tag?

1035


How do you list files in a directory?

1126


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2055


Explain what is a static function?

1089


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

1059