[ create a new paste ] login | about

Link: http://codepad.org/HJVKFaai    [ raw code | output | fork ]

C++, pasted on Mar 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int main(){
bool test;
float a,b;
a=0.0;
b=0.0;
float nCmd = a/b;
test = ( nCmd == nCmd ) ? true : false; 
if (test)
{
 printf("true");
}
else
{
 printf("false");
}
return 0;
}


Output:
1
false


Create a new paste based on this one


Comments: