answersLogoWhite

0


Best Answer

Function calling is where your code branches off to execute a function and then returns to the instruction following the call. The function may also return a value that can be stored and/or processed by the code that called it. Functions allow common code to be separated from the code that uses the common code, thus reducing maintenance (the code in the function is written once, rather than every time it is required).

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

You give the name of the function and any parameters it require. For example, if I have a function named test which accepts 3 integer parameters, I can do:

test(1, 2, 3);

Another example is if I want to use an object's function. If I have an object named testObject which has a function testFunction, I can do:

testObject.testFunction();

If I have a pointer testPointer pointing to testObject, I can do:

testPointer->testFunction();

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is function calling in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the meaning of x.getdata in c plus?

it mens u r calling de member function of de program


What are the building function in c plus plus?

There is no such term as "building function" in C++.


What is calling by reference?

In C++ (C Plus Plus), when you call by reference, you are directly accessing the data of the referenced object. When you pass an object to a function by reference, any and all alterations to the object made within the function carry through to the actual object.


Who is calling main function in c?

in c main function initailly called by operating system.


How will you pass arguments to a function in c plus plus?

If you have this function: int add(int x, int y) { return x + y; } you would pass the arguments when calling the function in the () like this: add(4, 7); 4 & 7 would be the arguments.


A c plus plus statement that invokes a function is known as?

...a function call.


When will you make a function inline in c plus plus?

yes,we can make function inline


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


In C plus plus when a function is executing what happens when the end of the function is reached?

Control is returning to the caller of the function.


What do you call an object function in c plus plus?

method


What is a main function in c plus plus?

It is the first function that gets called when the program is executed.


What is a reference variable in c plus plus?

A reference variable in C++ is a formal parameter of a function call that automatically dereferences itself, as if it were a pointer, into a reference to the original value in the calling routine. You declare the reference type in the function declaration and prototype, but the compiler automatically adds the reference (&) operator on call, and the dereference (*) operator on use.