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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -