Please enable JavaScript.
Coggle requires JavaScript to display documents.
Lect 7 - Coggle Diagram
Lect 7
Pointer and func
-
-
-
with pointers the mem, address of var. passed to func. Provides access to phys locations of var. in mem.Param. passing by ref can be made
-
When calling, func code is copied to indep area
-
-
-
Function :indep prog unit has own name, perform set of calc
Func argument : get input thru param, list. In func header ele.s r var declaratn, can be used as local var. inside func. Example: doubling func float doubling(float x) { float y; y=2x; x=3x; return y; }
Execution
-
-
When called, :call_me_hand: func code is cope]ied to indep area
-
If val of input changed inside func, not have effect outside func