answersLogoWhite

0

Absolutely. Indeed, any function (user-defined or built-in) that does not return a value is not really a function, it is simply a procedure.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

True or False A C plus plus class constructor cannot return a function value?

True - A C++ constructor cannot return a value.


How do you rectify the waring is function should return a value in turbo c plus plus?

By returning a value. Or using type 'void'.


How can a procedure be defined in C plus plus?

A procedure is simply a function in C++, therefore you define procedures just as you would any function. In some languages, a procedure is not a function as such, insofar as there is no return type. The C++ equivalent would therefore be a function that returns void.


What is meant by void in c plus plus?

void is used by functions that do not return a value. For example: // This function returns an integer, which you can use in other functions int addTwoNumbers(int a, int b) { return(a + b); } // This function does not return a value, so we declare it as a void void printSum(int a, int b) { cout << a << " + " << b << " = " << addTwoNumbers(a, b) << endl; // Note that attempting to return a value here will cause an error. }


What is the function of plus sign?

The "plus sign" (+) is an operator that, by default, takes the left and right operands as parameters, and returns the sum of both operands as the return value.


What is mean void in c plus plus?

Void means there is no data type. So if you have a void function it does not return a value (and attempting to do so will cause an error) whereas a non-void function (ex. int, long, String, bool, etc) will return a value of that type.


What are the pre-defined function in c plus plus?

The C++ standard library contains all the pre-defined functions.


What is the signature of a function in c plus plus?

A function's signature is defined by the number and type of parameters. Functions with the same signature cannot differ by return type alone. Use of the const keyword also constitutes part of the signature.


What can you say about the end behavior of the function f(x)- In (2x) plus 4?

You cannot because the function is not well-defined. There is no equality symbol, the function In(2x) is not defined.


What is clear in c plus plus?

clear() is an inbuilt function defined in c++ defined in conio.h. It is used for clearing the console. The systax is:clear();


What function must be in all c plus plus programs?

Every C++ program must have a main() function that returns an integer:int main(){// user-code goes here....// Main must return an integer to the calling program.// A non-zero value usually indicates an error occurred but// the exact meaning of the return value is user-defined.return( 0 );}


What is the default return type in C and C plus plus?

No. There is no default return type for functions, it must be explicitly specified in both the function declaration and in the definition. To specify no return value, return void. To return a variant type, return void* (pointer to void). Otherwise return the exact type.