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
Does c have function or method?
What is the difference between volatile and const volatile?
What is the concatenation operator?
Which header file is used for clrscr?
What are the types of c language?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is the difference between struct and union in C?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
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
What is a constant?
simple program of graphics and their output display
What is difference between structure and union in c?
What is getch c?
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.
Why is c used in embedded systems?