c - Reversing a string (input parameter and return a string) -


i have answer question:

write program reverses given string. (input parameter , return string)

does question mean have take input using command-line argument?
how return value work if return string main function?
or misprinted question supposed make function , return value string in main function?

does question means have take input using command line argument?

it doesn't specify, makes task easier.

how return value work

again, question doesn't specify, print screen (printf).

or misprinted question supposed make function , return value string in main function?

calling function main function great idea , receive credit in opinion although not explicitly specified.

one thing clear, ask program , not function, both best in opinion.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -