Computer Science, asked by ayushsajeev12, 9 months ago

what are the functions in c++
Explain predefined and user defined functions
​Class XI

Answers

Answered by smartbrainz
1

In C++, function is a block of code that performs a specific task.

  • C++ is an object oriented programming language that supports the concept of named programs. A function is such a named program that performs a specific task.
  • A function gets invoked when an independent call is made to it or from within a main program. It allows the users to pass parameters as input. Once created, a function is a reusable piece of code.
  • Predefined functions are inbuilt function in C++ which are a part of the C++ standard library.
  • User-defined functions are those programs that the users create or code in C++ . These are devised to perform specific task as required by the developers. The users can give them any meaningful name and invoke them as and when required.

To know more about C++, visit:

https://brainly.in/question/3669150

Similar questions