I run the following C codes and got a warning: control reaches end of non-void function
int main(void) {}
Any suggestions?
The main function has a return-type of int, as indicated in
int main(void)
however your main function does not return anything, it closes after
puts(strB);
Add
return 0;
after that and it will work.