Professional Documents
Culture Documents
C Programming: Function
C Programming: Function
Function
Programs
Debugging the containing
Functions are
program functions are
generally used
A function is a becomes also easier to
as
self-contained easier as the maintain,
abbreviations Functions are
program structure of because
for a series of easy to write
segment that the modifications,
instructions and
carries out a program is if required, are
that are to be understand
specific, well- more confined to
executed
defined task apparent, due certain
more than
to its modular functions
once
form within the
program
A semicolon is
used at the end of The function that
the statement Only one value can calls another
when a function is be returned by a function is known
called, but not function as the calling
after the function function/routine
definition
Parentheses are
compulsory after
The function being
the function name, The program can
called is known as
irrespective of have more than
the called
whether the one function
function/routine
function has
arguments or not
Extern keyword
10 12
&a &b
THINK?
Open question:
What happen if parameter is not wrapped inside parentheses?
Type checking