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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -