prog.c: In function ‘main’:
prog.c:21:9: warning: passing argument 1 of ‘sum’ makes integer from pointer without a cast [-Wint-conversion]
sum(first, second);
^~~~~
prog.c:8:6: note: expected ‘char’ but argument is of type ‘char *’
char sum(char, char);
^~~
prog.c:21:16: warning: passing argument 2 of ‘sum’ makes integer from pointer without a cast [-Wint-conversion]
sum(first, second);
^~~~~~
prog.c:8:6: note: expected ‘char’ but argument is of type ‘char *’
char sum(char, char);
^~~
prog.c: In function ‘sum’:
prog.c:50:17: error: invalid initializer
char aa[] = a;
^
prog.c:51:17: error: invalid initializer
char bb[] = b;
^
prog.c:53:12: warning: return makes integer from pointer without a cast [-Wint-conversion]
return (char*) aa;
^~~~~~~~~~
prog.c:53:12: warning: function returns address of local variable [-Wreturn-local-addr]