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 are the key features in c programming language?

1127


What is nested structure?

1099


What is the difference between text and binary modes?

1243


What does a function declared as pascal do differently?

1224


How can a program be made to print the name of a source file where an error occurs?

1267


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

1138


Explain how can I convert a number to a string?

1207


What does the error 'Null Pointer Assignment' mean and what causes this error?

1260


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

1218


What is the scope of an external variable in c?

1097


How can I read and write comma-delimited text?

1123


Why is c called c not d or e?

1146


How can I handle floating-point exceptions gracefully?

1243


Why string is used in c?

1050


Is malloc memset faster than calloc?

1132