having problem with a C code
Asked by
sidharth
i having a problem with the following code, it's though a simple code but i am not able to understand the output given by it
#include<stdio.h>
int main()
{
float a=0.7;
if(a<0.700000)
else
}
on compilling the above code the if statement gets true and prints "Hi", but according to me it shoul print "Hello". the condition is falls if i use "a>0.7" in if statement.
plz tell me what's the reason behind it.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask sidharth for more information if necessary.
To post a message you must log in.