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

  Find the approximate value of above functions

Derive taylor's polynomials of degree n for: f(x) = (1+x)^(1/2) and f(x) = cos x. Find the approximate value of above functions at x = pi/4 by hand calculator upto two decimal points. Show steps.

  The concept of global and scope of variables

Having looked at what happens to variables within functions and the concept of global and scope of variables, reflect on why Vectors are such a useful data structure. Explain your reasoning and provide examples to support it.

  Create an array of ten doubles

Java program that reads temperature data from the user and displays statistical data about those temperature. Create an array of ten doubles. How do you even start this? This is a basic java course.

  Describe how upper is adjusted to allow simpler code to work

Describe how A_upper is adjusted to allow this simpler code to work. (Hint: A_upper requires to be adjusted because A_lower will be sign-extended.)

  Classify occurrences as an incident or disaster

Classify each of the following occurrences as an incident or disaster. If an occurrence is a disaster, determine whether or not business continuity plans would be called into play.

  Explain what can-t be measured can-t be effectively managed

According to the following quote "what can't be measured can't be effectively managed." The question is can everything that is important in network security be measured using metrics or any other process? Why or Why not?

  Expert systems created-deployed in real-world applications

Expert systems have been created and deployed in many real-world applications to support decision making. Discover one recent case study or academic journal article.

  Write code application using a sub procedure

I need to code an application using a sub procedure to boh calculate and display a 10% bonus, use a sub procedure named ClearLabel to clear the contents of the bonusLabel whne the TextChanged even occurs for either text box

  Logic circuit to figure out how many of the bits

Design a logic circuit to figure out how many of the bits in a 6 bit unsigned number equal 1. Design the simplest possible circuit to accomplish this.

  Determine decimal value on big-endian machine

A 32-bit word on the little-endian computer has decimal value of 261. Determine its decimal value on big-endian machine?

  Write a paper on electronic health record

Write a paper on Electronic Health Record (EHR) Research and Summary.

  Algorithm-adjusting playout delay at starting of each talk

Let the adaptive playout delay algorithm. Demonstrate through the simple example which adjusting the playout delay at starting of each talk spurt results in compressing.

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