The following program is supposed to use passing by reference and return to order to convert Celsius into Fahrenheit. I know there are more efficient ways to do so, but I'm doing this for a class and we are required to follow this format in order to learn the above.
@ Computergeek01: He says he's trying to pass by reference, which he is almost doing properly. He didn't say anything about passing pointers.
@OP: You're assigning the return value of getcelsius() to celsius, but you don't return anything in that function. You need to declare that function as void and not try to assign anything to celsius. The variable will change within the function.