fork download
  1. #include <stdio.h>
  2. #include<string.h>
  3. int main(void) {
  4. char n1[50],n2[50];
  5. printf("enter your name");
  6. scanf("%c",n1);
  7. strcat(hi,n1);
  8. printf("%c",n1);
  9.  
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:7:10: error: 'hi' undeclared (first use in this function)
   strcat(hi,n1);
          ^
prog.c:7:10: note: each undeclared identifier is reported only once for each function it appears in
prog.c:8:10: warning: format '%c' expects argument of type 'int', but argument 2 has type 'char *' [-Wformat=]
   printf("%c",n1);
          ^
prog.c:4:15: warning: unused variable 'n2' [-Wunused-variable]
   char n1[50],n2[50];
               ^
stdout
Standard output is empty