一段很似很简单的c代码,你能答对吗?
请输出以下程序的打印结果:
#include <stdio.h>#include <stdlib.h>void test1();void test2();void test3();void test4();int main(int argc, char* argv[]){ test1(); test2(); test3(); test4(); return 0;}void test1(){ float x = 0.0f; float y = 0.0f; x= 1.0f / y; if ( x == x ) printf("yes\n"); else printf("no\n");}void test2(){ float x = 0.0f; float y = 0.0f; float temp = 1.0f / y; x = temp - temp; if ( x == x ) printf("yes\n"); else printf("no\n");}void test3(){ float x = 0.0f; float y = 0.0f; float temp = 1.0f / y; x = temp + temp; if ( x == x ) printf("yes\n"); else printf("no\n");}void test4(){ float x = 0.0f; x= x / x; if ( x == x ) printf("yes\n"); else printf("no\n");}