fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char name[50];
  5.  
  6. printf("PLease enter your name");
  7. scanf(name);
  8.  
  9. printf("Welcome" + name);
  10. return 0;
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:9:19: error: invalid operands to binary + (have ‘char *’ and ‘char *’)
  printf("Welcome" + name);
         ~~~~~~~~~ ^
stdout
Standard output is empty