Author
anonymous
over 8 years ago
Language
Compiler
Options
Author
anonymous
over 8 years ago
$
prog.cc:10:4: error: use of undeclared identifier 'strcpy'
strcpy(str, "example");
^
prog.cc:11:48: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
printf("String = %s, Address = %u\n", str, str);
~~ ^~~
%s
prog.cc:15:4: error: use of undeclared identifier 'strcat'
strcat(str, ".com");
^
prog.cc:16:48: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
printf("String = %s, Address = %u\n", str, str);
~~ ^~~
%s
2 warnings and 2 errors generated.
Exit Code:
1