What string will be output when this code is run? (Assume, as always, that this code is embedded in a complete, correct program.)
char song[10] = "I did it ";
char franks_song[20];
strcpy ( franks_song, song );
strcat ( franks_song, "my way!");
cout << franks_song << endl;
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.