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

What is the output for the below program?

void main()
{
float me=1.1;
double you=1.1;
if(me==you)
printf("love c");
else
printf("know c");
}

Answer Posted / kalyan chukka

The Answer is Know c Because float having 7 digit numbers
and double having 15 digit number

float me=1.1 it stores like 0.99999
double you=1.099999999

so the Correct Answer is Know C

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best style for code layout in c?

1041


Why is c fast?

1000


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1223


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

1050


What is the purpose of scanf() and printf() functions?

1169


What is a node in c?

912


What is quick sort in c?

1013


How many header files are in c?

980


What is the use of define in c?

998


What is the difference between array and linked list in c?

1076


Here is a neat trick for checking whether two strings are equal

964


Is a house a shell structure?

1103


What are linker error?

1031


if p is a string contained in a string?

1791


How can I get random integers in a certain range?

1012