Functions

Estudies4you
Learning Objectives
  • At the end of this topic, you will be able to:
  • Explain the concept of modular programming
  • List types of functions
  • Declare and call a function
  • Describe the working of a function
  • Identify local and global variables
  • Explain how a function call mechanism is supported by the function call stack and activation records
  • Identify function prototype
  • List and explain storage classes
  • State scope rules
  • Discuss recursion
  • Give an example of ‘C’ programs using functions
  • List and explain the pre-processor directives
Modular programming
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
Modular programming is a programming style that breaks down a task into modules, each of which accomplishes one task and contains all the source code and variables needed to finish that task.
By segmenting the program into modules, we can isolate the source of the program errors to a small segment of the code
Modular programming-Why?
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
  • Is a solution to the problem of very large programs that are difficult to debug
  • Makes development faster
  • Easier to debug, update and modify
  • Leads to a structured approach, as a complex problem can be broken into simpler tasks
  • One module may use another module, to achieve its purpose
  • Each module works independently of another
  • Encourages re-use of code

To Top