answersLogoWhite

0

How can a procedure be defined in C plus plus?

Updated: 8/19/2019
User Avatar

Wiki User

10y ago

Best Answer

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.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can a procedure be defined in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Definition of Looping in c and c plus plus?

Looping means you repeat a particular procedure a specified number of times or until a defined condition is met.


Can a C plus plus user defined function return a value?

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.


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

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


What is the different of c and c plus plus?

c is procedure oriented and c++ is object oriented & much newer.


User defined data type in c plus plus?

Use "typedef" : both in C and C++.


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();


How can a procedure be defined in C?

ProcedureName (type Arg1, type Arg2, ..., type ArgN) {/* procedure body */return;}Procedure is a Pascal term that means the same a function in C/C++It is better to use the C/C++ terms then there is no confusion.


What are the importance of integrating xml into c plus plus?

XML is not integrated int C++. If it is then it must be implementation-defined, it is not part of the standard.


Difference between procedure and function in C or C plus plus or Java language?

In C there are functions only, In Java methodsonly (static methods as well), in C++ both.


Why you use zero instead of NULL in c plus plus?

In C++ NULL is defined as 0. It's a design failure, will be fixed with a new 'nullptr' keyword.


What is the difference between C and C plus plus prototypes?

The only difference is that C does not use nor require prototypes. C++ does because all functions and types must at least be declared, if not defined, before they can be used.


When c was already there why did c plus plus was developed?

c is a structured language. It has many limitations since it gives more importance to procedure rather than data..so there needed a language that keeps data secure..