What value will be printed in the code

Assignment Help C/C++ Programming
Reference no: EM13939408

In the following code snippet, what value will be printed for c and d before the loop is executed?

What value will be printed afterward?

Why do you feel that this will occur? (Code needed to make this a complete program intentionally left out.)

int c = 99;
int a[5];
int d = 12;
printf("c = %dn",c);
printf("d = %dn",d);
while (c < 3)
{
printf("%dn",c);
c++;
}
a[5] = 0;
printf("c = %dn",c);
printf("d = %dn",d);
printf("Donen");
c = getchar();

Reference no: EM13939408

Questions Cloud

Proposal for improving parking at harrisburg university : Write a proposal that promotes ideas for improving student parking at Harrisburg University.
Features of a relational dbms : 1. A well-maintained relational DBMS has a high level of data integrity. What features of a relational DBMS contribute towards this level of integrity?
Revised conceptual database design : The second milestone will assess your abilities to transit to design and create a solution. This includes re-assessing the business requirements established in the first milestone (making adjustments to them if necessary), and creating complete da..
Evaluate the article using economic concepts : Choose a topic from Micro economics that matters to you and find a recent news article covering that topic. Evaluate the article using Economic concepts. You should include
What value will be printed in the code : In the following code snippet, what value will be printed for c and d before the loop is executed
Capital budgeting analysis : The Stanley Stationery Shoppe wishes to acquire The Carlson Card Gallery for $300,000. Stanley expects the merger to provide incremental earnings of about $51,000 a year for 10 years. Ken Stanley has calculated the marginal cost of capital for this i..
Differentiate between updatable and non updatable : What do you mean by 'view'? What are its different types? Differentiate between updatable and non updatable 'view' with suitable examples. Also give proper syntax for creating 'view'.
About the merger bid : Harrison Corporation is interested in acquiring Van Buren Corporation. Assume that the risk-free rate of interest is 4% and the market risk premium is 4%. Van Buren currently expects to pay a year-end dividend of $2.20 a share (D1 = $2.20). Van Buren..
Screenshots for actual output after testing : Coversheet Title page (including acknowledgements) Table of contents Design Include the algorithm and class diagram of your code under this section 5. Testing Use the table given below to provide your test data. Include screenshots for actual outp..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Convert the c++ code into matlab code

Can you convert the c++ code into matlab code

  Explain shortestpath() and printshortestdistance()

Explain the following code line by line, and submit your answer: shortestPath() & printShortestDistance() in weightedGraph.h

  Define the sums of every even column of 2d array

Define the sums of every even column of 2D array in C language - Prepare this program in c language. Show all your work.

  Write a program that will insert random integers

The value will be the random number. Use an iterator to print the two fields lined up on the right with field widths in two columns with the numbers labeled with centered column headings of Key and Value. Since the list is easier to work with, let..

  What is the value of the expression

following are the simple question.What is the value of the expression  1000 /10 /10 + 100 %1.What is the output printf("%c",65)What is the output {int i=10;printf("%d",10/i++);}.

  Determine the direction of operands

If the operands in the expressions are evaluated right to left? Let the function fun be defined as

  The relative strengths of acids and bases table

List, in a general way, the information that is provided in the Relative Strengths of Acids and Bases table. Explain how the information in the Relative Strengths of Acids and Bases table is used to support your work in this unit. Use examples to su..

  Time conversion

Write a C++ program that takes an Eastern standard time in hours, minutes, and seconds,and prints it out in Central time, Mountain time, or Pacific time.

  Write a program that will convert a temperature

Write a program that will convert a temperature in Fahrenheit to its equivalent in Celsius. Show the Celsius temperature formatted to 1 decimal place.

  What is the approximate value of square root 41

What is the approximate value of square root 41?

  Display the average and save the average to the file

Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.

  . write a segment of code that prints the number of elements

Assuming the array x has been defined as: int x[n]; for some n and that values have been assigned to all the elements. Write a segment of code that prints the number of elements between (but not including) the largest and smallest values in the array..

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