answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

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

Wiki User

13y ago

main

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the only function all C plus plus programs must contain?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write a program to return a function using class in C Plus Plus?

Classes cannot return values, only functions can return values. But you cannot return a function from a function, you can only return a function pointer -- a pointer variable holding the address of the function you wish to return. All possible return values must be of the same type, therefore all function signatures and return types must be exactly the same -- only the name of the functions can differ.


What is a function module?

Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.


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.


How will you overload a template function?

The only reason to overload a template function is to provide an overload that differs in the number and type of arguments that cannot be addressed by the template function alone. You simply declare them as you would any other overload. The overloads may themselves be template functions, but there must be no ambiguity: every template function must generate an unique function signature. Remember that template functions generate overloads at compile time on an as-required basis.


How do you merge 2 Visual C programs to get a single output?

You cannot. A C program can only have one global main function but you'd be trying to compile a program that has two main functions. The only way to merge the two programs is to modularise both programs so that neither is dependent upon their main functions. Once modularised, you can include those modules in any program. Alternatively, you can create binary libraries from the modules and link them into any program.

Related questions

Does music box contain stored programs?

Only the programs where you get your music and ringtones.


What must contain carbon and hydrogen?

An organic compound must contain carbon and hydrogen, but also may contain oxygen, nitrogen, sulfur, and phosphorus. An organic compound that contains only carbon and hydrogen is called a hydrocarbon.


What is the job of the rom on the motherboard?

ROM, or Read Only Memory, stores data or programs. These programs perform a specific function, such as controlling access to video cards or sound devices.


What is one important requirement that a property must have in order to be a state function?

A state function depends only on the equilibrium state of a system.


What is well behaved wave function?

List of the characteristics a well-behaved wave function are ..The function must be single-valued; i.e. at any point in space, the function must have only one numerical value.The function must be finite and continuous at all points in space. The first and second derivatives of the function must be finite and continuous.The function must have a finite integral over all space.


Write a program to return a function using class in C Plus Plus?

Classes cannot return values, only functions can return values. But you cannot return a function from a function, you can only return a function pointer -- a pointer variable holding the address of the function you wish to return. All possible return values must be of the same type, therefore all function signatures and return types must be exactly the same -- only the name of the functions can differ.


Is hcl organic?

No, an organic compound must contain carbon and HCl only contains hydrogen and chlorine.


What is MIDI software?

If you mean midi player, it is able to play midi files. Mostly such programs are free of charge and support only this specific function.


What is the function of Fipa card in nokia flexi BTS?

Transmission between BTS and BSC.FIFA card contain only TNC male connector.


Is there any free exchange program advailable?

The free exchange programs that are available are mostly international student exchange programs. These are only available from certain schools and participants must meet requirements.


Do the Excel AND function and OR function show same results?

They both can only give the result TRUE or FALSE. However, given the same values, they will not always give the same result. All conditions in an AND function must be fulfilled to give a TRUE result whereas only one needs to be fulfilled in an OR function.


For every input there must be only one output for it to be a function What if there was more than one output to an input is it still then a function?

No, it is not. A function can only have one output per input. (If it has more than one, it is still maths, but it cannot be called a "function". It would probably be called an equation or a formula etc...).