Question

C++ question: A function ______ outlines the instructions the function will carry out when executed. Conversely,...

C++ question: A function ______ outlines the instructions the function will carry out when executed. Conversely, a function ______ actually triggers the function to begin executing. Typically, we also put a function ______ above main so the compiler won't complain the first time it sees the function's name used.

Homework Answers

Answer #1

1. Function Defination

Reason : A function Defination is the thing which contains the actual body of the function and instructions in the form of statements which tells what operations function should perform. The function execution will be according to the function Defination only.

2. Function Call

Reason : function call will awake the particular function and begins its execution. Until and unless you call a function it will not execute. Therefore the function call triggers the function to begin the execution.

3. Function declaration

Reason : you can also declare the function above the main function which will be easier and the compiler will not give any error by seeing the functions name because it will be already declared above.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1. Read the following instructions on 'How to Repair an Electric Fan' which are written in...
1. Read the following instructions on 'How to Repair an Electric Fan' which are written in three different parts before answering the question given. The instructions below are considered ineffective as they are not following the effective instructions strategy. 1 Turn your fan on to make sure that the motor works. Plug your fan in and turn it on to the highest power setting. If the fan blades move a little or it starts to turn, the motor is probably...
Strings The example program below, with a few notes following, shows how strings work in C++....
Strings The example program below, with a few notes following, shows how strings work in C++. Example 1: #include <iostream> using namespace std; int main() { string s="eggplant"; string t="okra"; cout<<s[2]<<endl; cout<< s.length()<<endl; ​//prints 8 cout<<s.substr(1,4)<<endl; ​//prints ggpl...kind of like a slice, but the second num is the length of the piece cout<<s+t<<endl; //concatenates: prints eggplantokra cout<<s+"a"<<endl; cout<<s.append("a")<<endl; ​//prints eggplanta: see Note 1 below //cout<<s.append(t[1])<<endl; ​//an error; see Note 1 cout<<s.append(t.substr(1,1))<<endl; ​//prints eggplantak; see Note 1 cout<<s.find("gg")<<endl; if (s.find("gg")!=-1) cout<<"found...
As you saw from the lab PowerPoint slides last week, you will be doing a research...
As you saw from the lab PowerPoint slides last week, you will be doing a research study looking at ‘Aggression Priming” for your first paper. For this week’s discussion, I want you to discuss with your group what you think this study is about. What is the hypothesis? What theory does it come from? What do you predict will happen (do you expect something different than the hypothesis in the researcher instructions? If so, what and why?)? Do you think...
INTRODUCTION TO MARKETING Question: Identify TWO target segments for the NOBU brand and briefly describe each...
INTRODUCTION TO MARKETING Question: Identify TWO target segments for the NOBU brand and briefly describe each using the relevant concepts covered in this course Traveling in Nobu Style: Converting Restaurant Patrons to Hotel Guests The name “Nobu” is synonymous with an exceptional Japanese dining experience, perfected by chef Nobu Matsuhisa over a more than 30-year career. Matsuhisa, together with actor Robert De Niro and restaurateur Drew Nieporent, opened the first Nobu restaurant in 1994 and to date, there are now...
Actually a HISTORY question: what tactics does Einhard use to portray Charlemagne in "Life of Charlemagne"...
Actually a HISTORY question: what tactics does Einhard use to portray Charlemagne in "Life of Charlemagne" and what tactics does Procipius use to describe Justinian in a positive light in the "Nika Riots"? Ive posted both excerpts. "Life of Charlemagne" Charles the Great, (Charlemagne in French) reigned 768-814 as king of the Franks and the most important ruler of the Carolingian Dynasty, conquering lands in what is now Germany, France, Spain, and Italy. On Christmas Day 800 C.E., Pope Leo...
The assignment summary sheets will be submitted week 14 with Test 3. You are to personally...
The assignment summary sheets will be submitted week 14 with Test 3. You are to personally experience the power and satisfaction of developing these skills firsthand and to reflect and write about this experience. Over the years, many students have shared amazingly rewarding experiences as they worked on these skills. The assignment will be evaluated and be weighted as 5% of your final mark (together, they are worth 20% of your mark for Test 3, which is worth 25% of...
QUESTION: Why do governments typically take an unsupportive stance on countertrade arrangements? Article Below: The Bell...
QUESTION: Why do governments typically take an unsupportive stance on countertrade arrangements? Article Below: The Bell Boeing V-22 Program, a strategic alliance between Bell Helicopter, a Textron Company, and the Boeing Company,1,2 announced the V-22 Osprey tiltrotor will be featured at the Dubai International Air Show in the United Arab Emirates (UAE) from November 13 to 17, 2011. The Air Show, held biennially, is organized in cooperation with the government of Dubai, the Department of Civil Aviation, and Dubai International...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the purchases and fixed assets business areas. Prepare a 12- to 16-slide presentation describing the purchases and fixed assets business areas. Be sure to incorporate speaker notes as well as appropriate visuals, graphics, fonts, etc. Include any associated risk in these areas. Describe specific internal controls that include authorization of transactions, segregation of duties, adequate records and documentation, security of assets, and independent checks and...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...