What is the proper syntax of declaring a c-style string

Assignment Help Basic Computer Science
Reference no: EM13307862

Take a look at the following program -- #include using namespace std; int main( ) { char name[100]; //declare a character array cout << "enter your first name, a space, and your last name: "; cin >> name; cout << "you entered: "<< name << endl; return 0; } What's the proper syntax of declaring a C-style string? Does this program work properly? If not, why? What can be done to correct it?

Reference no: EM13307862

Questions Cloud

Find second year book value for equipment with initial cost : what is the second year book value for equipment with an initial cost of $11,000, a salvage value of 1,000 and a recovery period of 5 yrs for A. straight line depreciation. B. Double declining balance. C. MACRS
Four elements of the mcdonald''s organization chart : Complete the four elements of the McDonald's organization chart
Four elements of the mcdonald''s organization chart : Complete the four elements of the McDonald's organization chart
How do you arrive at that conclusion : Electrostatic interactions with neighbors cause atoms in solids to be held in place as if bound together by tiny springs. How do you arrive at that conclusion
What is the proper syntax of declaring a c-style string : Take a look at the following program -- #include using namespace std; int main( ) { char name[100]; //declare a character array cout > name; cout
Determine what is the amount of the annual withdrawl : $25,000 is deposited in a savings account that pays 10% interest, compounded monthly. Equal annual withdrawls are to be made from the account, beginning one year from now and countinuing forever.
Define identify how it supports business processes : Identify how IT supports business processes. The business is relying on their capabilities to achieve the business goals. The IT strategy should include a plan for supporting those business capabilities, creating efficiencies, and competitive adva..
What is the amount in the account at the end of 20 years : The company makes no deposits during the subsequent 10 years. If the bank pays 10% interest, what is the amount in the account at the end of 20 years
Analyze and t coompare and contrast the code of ethics : You will be asked to analyze and t coompare and contrast the code of ethics of both Starbuck's and McDonald's. Summarize your analysis and findings

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create a program to keep track of the participants

Create a program to keep track of the participants in a triathlon. Your program will keep track of the times in three events: Running, Swimming, and Biking.

  Give time line which identify specific steps of installation

Give a time line, which identifies specific steps (including training) and related resources required to implement the recommended system.

  Provide an explanation of hashtables

In your comparison, be sure to include an explanation of one way hashtables are similar to your selected data structure and one way in which they are different.

  Produce a report by salesman

Do a compile-time initialization of the salesperson's names and product list. Produce a report by salesman, showing the total sales per product.

  Generate dropdown to create example c++ code

Submit your C++ source code that you generated from RAPTOR with comments added to each line or where necessary to explain program flow. Also submit the RAPTOR file (flowchart) of your working program.

  Discuss some options for mobile wireless

Please discuss some options for mobile wireless internet connection, and describe the types of hardware that would be involved in making such a connection

  Which must be populated in the code-behind file

which must be populated in the code-behind file. The values of the new controls must be output when a postback is done.

  Define data access controls in the erp software to deny

Assignment builds on the scenario of Ken 7 Windows Limited given as the last section of this document. For this assignment, imagine yourself to be a security administrator working for Ken 7 Windows Limited. You have been asked to evaluate the option ..

  Create direct-mapped data cache for the byte offset

Create the 128KB direct-mapped data cache which uses a 32 bit address and 16 bytes per block. Compute the following: How many bits are utilized for the byte offset?

  Explain capacity of memory equal to size of external storage

This means that capacity of memory will be equal to size of external storage. How would this influence file structures? How would this influence storage devices?

  Biggest advantages of mathematical model

What would be the biggest advantages of a mathematical model that supports major investment decisions? Discuss in scholarly detail.

  What is the relationship between transistor densities

In two paragraphs explain what is the relationship between transistor densities and the improvement in computer speed and miniaturization?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd