0% found this document useful (0 votes)
8 views15 pages

Understanding Functions in C Programming

The document discusses the limitations of computer programs in handling tasks independently, emphasizing the need for functions to assist in task execution. It also addresses common programming issues such as function declarations, void return types, and the proper placement of function definitions in relation to the main function. Additionally, it highlights errors like unnecessary semicolons and incorrect parameter usage in function calls.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views15 pages

Understanding Functions in C Programming

The document discusses the limitations of computer programs in handling tasks independently, emphasizing the need for functions to assist in task execution. It also addresses common programming issues such as function declarations, void return types, and the proper placement of function definitions in relation to the main function. Additionally, it highlights errors like unnecessary semicolons and incorrect parameter usage in function calls.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

A computer program (except for simple ones) can’t handle all


the tasks by itself. Instead, it requests other programs-like
entities called functions in C, to get its tasks done.
2. Self-contained block of statements.

book insider practice 2

book insider practice 3


DOUBT
book insider practice
book insider practice
why so many prints?
prinit was used before it was declared and prinit gave us no value in return so it
was basically void, so we need to declare that it returns no value.
unnecessary semicolon with void message() in line no. 8
we cant insert any random function undefined before main() function as main() is
the calling function.
if we are saying it is a void message() then we are trying to say it does not return
anything in return but in message() we are giving parameter
message(message()) whereas it will not return anything in return.

You might also like