Advertisement
Mikescher

Wad Wad Wad :: C stahp

Sep 11th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3. #include<math.h>
  4.  
  5. #define PI 3.14159265
  6.  
  7. int main()
  8. {
  9. double d = (2*atan2(0, PI));
  10. d /= d; // d = 1
  11.  
  12. if (d != d) {
  13.   printf("INEQUAL (d != d)");
  14. } else {
  15.   printf("EQUAL (d == d)");
  16. }
  17.  
  18. return 0;
  19. }
  20.  
  21. Was printed dieses Programm aus ?
  22. Erst überlegen dann nachschauen: http://codepad.org/Lis4E8ch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement