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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c have function or method?

591


What is the difference between volatile and const volatile?

565


What is the concatenation operator?

610


Which header file is used for clrscr?

582


What are the types of c language?

556






Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1717


What is the difference between struct and union in C?

574


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

770


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

726


What is a constant?

635


simple program of graphics and their output display

1469


What is difference between structure and union in c?

546


What is getch c?

853


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

1633


Why is c used in embedded systems?

614