answersLogoWhite

0


Best Answer

There is no requirement for any statement in a C++ function, let alone three sets of statements. For instance, the following is a perfectly valid function:

void foo(){}

Clearly this does nothing as it has no statements in the function body, but it is nevertheless a valid function.

Perhaps you mean something else by "statements". The only requirement of a function is that it have a return type, a valid name, an argument list and a function body. The return type may be void, of course, and the argument list may be empty, but it must include the ellipses. The function declaration need not include the function body, and the argument list need only specify the type of argument (the argument names are optional and need not match those declared in the actual definition).

The function name and the arguments define the function signature (the prototype), thus the three required "components" of a function are the return type, the signature and the function body.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the three required sets of statements for every function that a programmer writes in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a method of developing software in which the programmer writes and implements a program in segments instead of waiting until the entire program is completed?

RAD (rapid application development)


What do you call a person who writes algorithms?

If the algorithms are intended to be processed by a machine then they are known as computer programmers. Otherwise they are mathematicians.


What is executable code?

short answer: executable code is a program that is ready to be used write now. long answer: writing a computer program is generally a 2 part process (there are exceptions): 1) programmer writes the code 2) programmer runs his code through a special program called a Compiler the Compiler is responsible for taking code that a programmer can understand, and turning it into something that a computer can understand. executable code is (usually) code that has been compiled.


What is difference between compiled code and uncompiled code?

Probably that one is compile and the other isn't. - A programmer writes a computer program in a programming language that is more or less readable - at least to the programmer. This is called the "source code". This is then converted (compiled) into the so-called "machine language". The machine language can't be read by a human, unless a lot of effort is devoted to decoding it - but it is what the computer is designed to run.


Bzero function in socket programming?

bzero: writes the specified number of null bytes to the specified destination. bzero(char *dest, int nbytes);

Related questions

Someone who develops software or writes instructions for the computer?

programmer


What is the Language programmer writes one mnemonic instruction for each machine level instruction?

It is an assembler language programmer


What is a Programmable?

A programmer - is a person who writes programs for computers.


A person who writes and maintains computer programs is called a?

Programmer, Computer Programmer, or Software Engineer depending upon whom you ask.


Who is someone that develops software or writes the instructions that direct the computer to process data?

programmer


What do you call someone that makes computer games that starts with a p?

A Programmer makes computer games. The Programmer writes, tests and debugs the detailed instructions in the computer program.


Is computer programmer a common noun?

Yes, the compound noun 'computer programmer' is a common noun, a general word for a person who writes programs for the operation of computers.


What is the meaning software engineeing?

(software engineer) programmer: a person who designs and writes and tests computer programs.


Who writes mission statements?

busines people and people trying to get out information to other people


What is the difference between a Game Developer and a Game Programmer?

A game developer creates the game's story and plot. A game programmer writes the computer coding for the game. Basically, they take what the developer has and translates it into computer language.


What is button of vasiual basic?

A button is a control. It is just like a button on any screen. The user clicks it, and code that the programmer writes is executed.


What is fwrite function in c language?

writes data to a FILE* stream.