fork download
  1. #include <iostream>
  2. using namespace std;
  3. void f(char **p){
  4. char *t;
  5. t = (p += sizeof(int))[-1];
  6. printf("%s\n",t);
  7. }
  8. int main() {
  9. char *argv[] = {"ab", "cd", "ef", "gh", "ij","kl"};
  10. f(argv);
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
gh