fork download
  1. struct A
  2. {
  3. static const int a = 5 ;
  4. };
  5.  
  6. #include <iostream>
  7.  
  8. int f(const int *i)
  9. {
  10. int b = 2 * *i;
  11. return b - 3;
  12. }
  13.  
  14. int main()
  15. {
  16. std::cout<<f(&A::a)<<"\n";
  17. return 0;
  18. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
7