Hello all,
I need some help, so any way you can help me would be greatly appreciated. I've just started learning C language and using user defined functions, but I'm still not quite sure as to what "return ;" does or how to use it. At the bottom of my programs I've been instructed to put "return 0;" and when using user defined functions I need to return a number, but don't know how to return it, where it goes when it is returned, or how to retrieve it in the main. Any information about the return command would be helpful. Thanks.
Also, I need to create a user defined function that will keep track of how many digits are in the input that a user puts in. For example: I ask the user to input his salary and collect the input with a scanf function. If the user inputs 30000, I need some way for the program to keep track that 5 digits were inputted. Please help me if you know a way to do this or a command that will help me. Thank you.