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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

664


What is the sizeof () a pointer?

549


What is an operator?

657


What math functions are available for integers? For floating point?

625


Explain what is the difference between functions abs() and fabs()?

621






What is a union?

611


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

646


What are different types of variables in c?

571


The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

1065


What are # preprocessor operator in c?

632


Is there anything like an ifdef for typedefs?

704


what does static variable mean?

657


Sir i need notes for structure,functions,pointers in c language can you help me please

1946


Why pointers are used?

633


Does c have circular shift operators?

731