answersLogoWhite

0


Best Answer

All function interfaces must be declared before they can be used. This is known as a forward declaration and is strictly enforced in C++ (but not in C). To facilitate this, interfaces are typically placed in a header file which can then be included in every source file that requires access to that function. The interface need not be defined (implemented) in the header unless the function is a template function. Typically, implementations are kept separate from interfaces (template function implementations are kept in the header but typically separated from the interface) since the interface contains everything the user needs to know in order to make use of the function.

User Avatar

Wiki User

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

Wiki User

12y ago

Use the void type ...

void myFunction (...);

This answer is:
User Avatar

Add your answer:

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

What is member fusion in c plus plus?

If you are asking about member functions. When we declare a function inside a class then that function becomes member function of that class and this function can access the whole class


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


Can you declare a function in the body of another function in c language?

yes, we can not declare a function in the body of another function. but if we declare a function in the body of another function then we can call that very function only in that particular function in which it is declared; and that declared function is not known to other functions present in your programme. So if a function is required in almost all functions of your programme so you must declare it outside the main function i.e in the beginning of your programme.


Can you declare a method within a method in c or c plus plus?

C: there are no methods in C. C++: no.


How do you convert numeric value into alpha value in c plus plus programming language?

use the _itoa function


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.


In c plus plus are local declarations visible to the function in a program?

If you declare a variable inside of any fuction (except main) it will not be available to other functions.


What you declare in the function prototype in c?

yes


What is swap in c plus plus programming language?

It is not a reserved word, so can be an identifier (name of a type/variable/function).


What is self referential function in c plus plus?

A self-referential function in C++, or in any other supporting language, is a recursive function.


What are the building function in c plus plus?

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


What is the difference between C plus plus and the original language?

C++ is easier to use as you have to learn slightly less and script slightly to make your function(s) work.