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