-->

Introductions to Functions in C language

Introductions to Functions in C Programming

Function

define function,what is modular programming,why modular programming in c,jntuh r18 computer programming in c syllabus,jntuh cse lecture notes,jntuh r18 course file,jntuh r16 course file,computer programming in lecture notes,computer programming in study material,computer programming in previous question papers,jntuh previous question papers,jntuh r16 previous question papers pdf,use of functions in c language,define function in c programming what is function in c language,what is function in c programming,estudies4you,jntu study material

Modules in ‘C’ are functions. A function is a self contained block of statements that perform a specific task of some king. Every  ‘C’ program is a combination of one or more functions.
Main is also a function with a reserved name, main()

define function,what is modular programming,why modular programming in c,jntuh r18 computer programming in c syllabus,jntuh cse lecture notes,jntuh r18 course file,jntuh r16 course file,computer programming in lecture notes,computer programming in study material,computer programming in previous question papers,jntuh previous question papers,jntuh r16 previous question papers pdf,use of functions in c language,define function in c programming what is function in c language,what is function in c programming,estudies4you,jntu study material

A common analogy for the concept of functions is the hierarchical form of management.
A boss (the calling function or caller) asks a worker (the called function) to perform a task and report back, when the task is done.
The worker may call for other worker functions, and the boss will be unaware of this.
Note, that worker 1 acts as a boss function to worker 4 and worker 5.
Relationships among functions may differ from the hierarchical structure shown in the above figure.


define function,what is modular programming,why modular programming in c,jntuh r18 computer programming in c syllabus,jntuh cse lecture notes,jntuh r18 course file,jntuh r16 course file,computer programming in lecture notes,computer programming in study material,computer programming in previous question papers,jntuh previous question papers,jntuh r16 previous question papers pdf,use of functions in c language,define function in c programming what is function in c language,what is function in c programming,estudies4you,jntu study material

Similarly, the main function communicates with several worker functions in a hierarchical manner.
For example, a function needing to display information on the screen, calls the worker function ‘printf’ to perform the task, then printf displays the information and reports back or returns to the calling function, when its task is completed.


Related Posts

Subscribe Our Newsletter