Actually, if the context is appropriate, earth is dirt, but that might not have a lot to do with anything.
Actually, if the context is appropriate, earth is dirt, but that might not have a lot to do with anything.
only a student can understand another students homework blues.
i understand u buddy.
but as these gurus are saying its not appropriate to get your homework done by others.
anyway if you get the code,don't forget to post it for me.
> anyway if you get the code,don't forget to post it for me.
I don't know why both of you are even bothering to study.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
my logic was that - 1)since there is a space at the end of first name ,transfer the last character of 1st name into space ,transfer 2nd last char of name in original place of last character ,and continuing 2) transfer the 1st character of surname to the 1st place , assign a space character 2 the place of 1st character of surname 3)count the no of characters in surname and run the loop for that many times .
i wrote the code but i was getting only the surname printed as the output
is there any other way of doing the problem?
There...was it to difficult to think it out ?
Now... a better approach would be :
1: Reverse the whole array.
2: Reverse the individual words.
> my logic was that....
Now get a number of small pieces of paper, say 3cm square, and write each letter of a name on each piece.
Arrange the whole lot in front of you to spell out the name.
Now "run" your idea to see what actually happens.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
how will you reverse the whole array?we are not supposed to use string library functions