The out-put for this program will be: 'LKJIH'?
char chs[5];
chs[4] = ‘H’;
for ( int i=3; i>=0; i--)
chs[i] = chs[i+1] + 1;
for (int i=0; i<5; i++)
cout<<chs[i];
Is the output correct??
Last edited on
So is my answer correct??? or am I forgetting something???
Last edited on
Compile and check.
Nobody is going to compile your code for you because you are too lazy to do it yourself.
Sorry if I'm being to harsh but some things require a little common sense.