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

Explain what are multibyte characters?

1128


Explain what is the heap?

1025


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1905


how we can make 3d venturing graphics on outer interface

4752


What is uint8 in c?

1070


In C language what is a 'dangling pointer'?

1083


What is the difference between void main and main in c?

1118


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15750


What is array of structure in c programming?

1254


Explain how are portions of a program disabled in demo versions?

1092


Explain the difference between ++u and u++?

1082


What is variable initialization and why is it important?

1186


How do c compilers work?

1068


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2540


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

2297