fork download
  1. #include <iostream>
  2.  
  3. int sum(int a, int b)
  4. {
  5. return a + b;
  6. }
  7. int& inc(int& a)
  8. {
  9. a = a+a;
  10. return a;
  11. }
  12.  
  13. int main()
  14. {
  15. int a = 5;
  16. int b = 10;
  17. const int c = 6;
  18. double d = 4.5;
  19. int arr[] = {1, 2, 3};
  20. int* p = arr+1;
  21.  
  22. //a
  23. //c
  24. //a+1
  25. //a++
  26. //++a
  27. //sizeof a
  28. //a < b ? c : d
  29. //a < b ? a : b
  30. //a < b ? a+1 : b
  31. //(int)d
  32. //static_cast<char>(a)
  33. //sum(a, b)
  34. //inc(a);
  35. //p[1]
  36. //arr[1]
  37. //a <= b
  38. //std::cout
  39. //std::cout << a (tricky)
  40. //a << 3
  41. //*p++
  42. //(*)p++
  43. //a+=d
  44. //p = nullptr
  45. }
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
Standard output is empty