fork download
  1. int main(int argc, const char *argv[]) {
  2. argv[0][0] = 'X';
  3. return 0;
  4. }
  5.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:2:13: error: assignment of read-only location ‘**argv’
  argv[0][0] = 'X';
             ^
stdout
Standard output is empty