Is the period key on your keyboard broke or something?
Printable View
Is the period key on your keyboard broke or something?
Learning to program isn't a start-to-finish process. Think of how much is involved in just a simple "hello, world" program. There's at least half a dozen concepts staring at you right there. But the book can't go into complete detail about each of those right off the bat. Your head would spin.
Functions are going to be used in the exercises before they're taught to you in-depth.
>What is this call by value, what do they mean it stores memory in an imaginary value!
I think you mean pass by value. In C all function arguments are passed by value, which means a copy of the argument is passed to the function. This means if an argument is changed in the function, the change will only be seen within the function. Back in the calling function the argument will retain its original (unmodified) value.
Some languages also have call by reference, which means the the argument's address is passed.