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");
}

Answers were Sorted based on User's Feedback



What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==..

Answer / revathi pawar

know c is the answer because float and double r not same
the memory allocation differs so know c will b printed

Is This Answer Correct ?    10 Yes 2 No

What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==..

Answer / anuradha

know c because do not compare float and double values

Is This Answer Correct ?    6 Yes 0 No

What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==..

Answer / sangeetha

the answer for the above code will be know c because else
part is printed because float and double is not same

Is This Answer Correct ?    3 Yes 0 No

What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==..

Answer / smartmove

Correction in last answer:

float me=1.1 it stores like 1.0999
double you=1.09999999

Is This Answer Correct ?    3 Yes 0 No

What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==..

Answer / 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

What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==..

Answer / suresh

love c

Is This Answer Correct ?    1 Yes 5 No

What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==..

Answer / kumar

love c

Is This Answer Correct ?    4 Yes 11 No

Post New Answer

More C Interview Questions

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

10 Answers   Wipro,


What is the use of header?

0 Answers  


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

0 Answers  


why programming language C is still used in operating system's kernel??

1 Answers   Wipro,


Q.11 Generate the following pattern using code in any language(c/c++/java) for n no. of rows 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

2 Answers  


Explain how do you generate random numbers in c?

0 Answers  


wat is the meaning of c?

9 Answers   CTS, IBM, Wipro,


What is difference between class and structure?

0 Answers  


How do you define structure?

0 Answers  


main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }

1 Answers   Vector, Vector India,


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

0 Answers   Gamesa, Satyam,


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

0 Answers  


Categories