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 / 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 |
Post New Answer View All Answers
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
how do you execute a c program in unix.
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What is a built-in function in C?
What is modeling?
How many levels of pointers can you have?
What is the explanation for modular programming?
to find the closest pair
When was c language developed?
What is a MAC Address?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is preprocessor with example?
how can I convert a string to a number?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.