I am comparing two equal values but why a < 0.7 is true, one more thing i wanted to check the datatype of 0.7 but I don't know how to do this.
void main(){
float a = 0.7;
if(a < 0.7){
printf("c");
}else{
printf("c++");
}
}
Output: c
one more example:
int a = 10;
if(a > 10){
printf("if block");
}else{
printf("else block");
}
Output: else block