GAME OF CODE’22 — DAY 4.1

How to declare a function?

How to call a function?

How to pass parameters in a function?

What is the main function?

Q) Why do we need the parameter option for the main function?

Q) Why do we need to write ‘return 0’ at the end of the main function?

Default Arguments in C++

Points to Remember:

Advantages:

Disadvantages:

What are Inline Functions?

Advantages:

Disadvantages:

Return from Void Functions in C++

What is Function Overloading?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store