fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. //In C++ given:
  6.  
  7. int x = 0x8000000p-0xf0;
  8.  
  9. /*Without checking, what is the value of x?
  10.  
  11. A. -2147483648
  12. B. 2147483422
  13. C. ill-formed
  14. D. Undefined behavior
  15.  
  16. #CppPolls
  17. #Cplusplus*/
  18. std:: cout<<x;
  19. return 0;
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:7:21: error: invalid suffix 'xf0' on floating constant
int x = 0x8000000p-0xf0;
                    ^
1 error generated.
stdout
Standard output is empty