[Solved] What do the values in a function do in C?


Technically, the arguments to functions are expressions. Expressions come in many different forms. They can be variables, like in

 value = fun_1(num1, num2);

or they can be constants, like in

 value = fun_1(1, 12);

or even involve operators with other expressions:

 value = fun_1(fun_1(42, 1) * 3, sizeof "foo");

Note that the expressions must have a compatible type. Functions taking integral values don’t take string literals or pointers. If you buy just one book for learning C, it should be The C Programming Language, 2nd ed., by Kernighan and Ritchie.

solved What do the values in a function do in C?