fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. char p[]="Hello";
  6.  
  7. for (int i = 0; i < sizeof(p); ++i){
  8. std::cout << *(p + (i*sizeof(char))) << '\n';
  9. }
  10.  
  11. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
H
e
l
l
o