Alison's New App is now available on iOS and Android! Download Now

Functions, Recursion and Program Organization in C++

Learn how to execute functions, create recursive algorithms and organize large programs in C++ from this free course.

Publisher: NPTEL
This course delves into complex Virahanka numbers, in-depth C++ functions and overall program organization, with a special focus on recursive, passing and overloading functions as arguments. You will also study how to divide codes into functions and use namespaces, improving your C++ programming skills.
Functions, Recursion and Program Organization in C++
  • Duration

    4-5 Hours
  • Students

  • Accreditation






View course modules


‘Functions, Recursion, and Program Organization in C++’ provides a professional guide and series of tutorials to the fundamentals of functions, recursive functions, and program organization for C++ programming. This course will teach you how to execute functions and work with large programs, and begins with an introduction to defining new commands, finding the greatest common divisor (GCD), and the general form of function definitions.

Next, you will study the contract view of functions, types of conditions, and how to use reference parameters. You will also learn about the role of ‘pointers’ in storing the addresses of variables, assignment statements, and how to execute functions. Go on to discuss recursive functions along with a comparison of recursive and non-recursive GCD. Analyze the processing of recursive objects using recursive functions and the tree drawing algorithm using the turtle in Simplecpp. Furthermore, the course will highlight the process of designing and understanding recursive algorithms, dividing codes into functions, and splitting programs into files. You will also take a look at Virahanka's question and solution, and a program to calculate V(D),. Study how to define a namespace, the 'using' directive, and using C++ without Simplecpp. Finally, you will study how to pass functions as arguments to other functions as well as how to overload functions.

This free online course provides an in-depth learning experience for intermediate aspects of C++ with an effective guide to executing recursion, functions, default values, and organizing programs. Programmers, developers and coders will find the material useful, whether moving from being beginner to intermediate users or refreshing their overall technical knowledge of C++ as a computer science program.

Start Course Now