TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.10] comparision between float variable and 0.7 constant

#include
int main(){
    float a=0.7;
    if(a<0.7){
        printf("C++");
    }
    else{
        printf("C");
    }
   return 0;
}
    

Options]

A) C
B) C++
C) runtime error
D) 1 warning with blank output        

Click to See Answer
B) C++    

Next | printing value of pointer to pointer variables

Previous | Assigning auto variable to static variable

Hemen Ashodia [paper setter]
Register & recharge
Male Female
I agree Terms and Conditions