fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char *p = "GATE2011";
  6. printf("%d", sizeof(p), sizeof('G'), sizeof(p[0]));
  7. printf("%s", p + p[3] - p[1]);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
42011