Home | | Computer Science 11th std | C++ Functions: Points to Remember

Chapter: 11th Computer Science : Chapter 11 : Functions

C++ Functions: Points to Remember

A large program can typically be split into smaller sized blocks called as functions.

Points to Remember:

 

A large program can typically be split into smaller sized blocks called as functions.

 

Functions can be classified into Pre-defined or Built-in or Library Functions and User-defined Functions.

 

User-defined functions are created by the user.

 

The void function tells the compiler that the function returns nothing.

 

The return statement returns a value to the calling function and transfers the program control back to the calling function.

 

Default the data type of a function in C++ is of type int.

 

A function that calls itself is known as recursive function.

 

Scope refers to the accessibility of a variable.

 

There are four types of Scopes. They are: Local scope, Function scope, File scope and Class scope.

 

The scope operator (::) reveals the hidden scope of a variable.

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
11th Computer Science : Chapter 11 : Functions : C++ Functions: Points to Remember |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.