int main(){
float f=8.0;
if(f==8.0)
printf("good");
else
printf("bad");
}
what is the answere and explain it?
Answer Posted / jayaraj.s
good is the result. because we declare and compare the same
value in the program.so alwaye if condition is true. we no
need to put else condition for these type of comparisions.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What should malloc() do?
How can I open files mentioned on the command line, and parse option flags?
What is a 'null pointer assignment' error?
What is the use of a ‘ ’ character?
Should a function contain a return statement if it does not return a value?
What are the parts of c program?
How can I access an I o board directly?
Write a program to check palindrome number in c programming?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Why clrscr is used in c?
Explain can you assign a different address to an array tag?
How do you list files in a directory?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Explain what is a static function?
How can I implement a delay, or time a users response, with sub-second resolution?