answersLogoWhite

0

Translation of question:

int total;

int sum = total;

total = 100;

print("sum = %d, total = %d\n", sum, total );

The output is undefined because you used total before initialising it. However, if we assume total is initialised to zero, then the output would be:

sum = 0, total = 100

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

What is the output displayed by the following program when the data entered are 5 and 7?

Impossible to say without seeing the program's source.


What is accuracy of a good program?

It depends on to what level of accuracy you tend to have with the output of your program Accuracy can be treated as: (Desired Output / Actual Output of your Program)


Write a program which takes the gender and salary the age from user the program should calculate and display the following information you If gender is male and age is greater equals 18 then the tax?

Write a program which takes the gender and salary ,the age from user. the program should calculate and display the following information. i. If gender is male and age is greater >=18,then the tax =5%of the salary. ii. If gender is female and age is >=18,then tax=3%of salary. The program should display the output as follows: Gender = Age = Tax = Salary before tax = Salary after tax =


How do you append a output of a program to a program?

you mean like show some sample output? Just put it in comments at the bottom. Run the program, and in the top left of the command prompt there is a button you can click. Select mark, highlight the output, then select copy. Paste it onto the end of the program.


How do I write a program to do the following... Write a VBA code to take the TippingBucketData.txt file and process it to generate an output file.?

Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.

Related Questions

How do you write a program with do while loop so that the output is 123456 equals 720?

How do you write a program with do while loop so that the output is 123456 =720


If a generator has a max output of 10000 watts and the continuous output is 75 percent of max output what is the continuous output in watts?

Let's see. Take 10,000 times 75 % and it equals 10,000 times .75 which equals 7,500 watts or 7.5kW.


What is the output displayed by the following program when the data entered are 5 and 7?

Impossible to say without seeing the program's source.


Which country leads the world in spinach production?

China - The United States is the world's second-largest producer of spinach, with 3 percent of world output, following China (PRC), which accounts for 85 percent of output


How do you assign output in C plus plus?

To have your program output to a file you must do the following :First you must write the library that allows the use of files#include This will allow you to use the necessary codes to input or output to filesThen in your program you write the following codeofstream outfile("statistic.txt");This declares the assigned file for output. Here statistic.txt is the assign file. The program will send the output to that file.To send the output to the assigned file instead of the screen do the following:Instead of "cout


What is accuracy of a good program?

It depends on to what level of accuracy you tend to have with the output of your program Accuracy can be treated as: (Desired Output / Actual Output of your Program)


What is the level of output after four years if initial output equals 1000 and the economy grows at a rate of 10 percent a year?

1000 x (1.1)4 = 1464.1 at the end of four years.


What process do you need to have the following output?

The process that you need to do the following output depends on what the output is. The process you do to get one output would not be the same process you do to get a different output.


How do you find the input power in the electric efficiency formula if you have the output power and the efficiency percent?

Output equals efficiency times input; in formula, Ot = Ef x In and so In = Ot/Ef. To calculate the original input, divide the output by the efficiency.


Which documentation is typically written first input output internal program or external program?

Output documentation


Write a program which takes the gender and salary the age from user the program should calculate and display the following information you If gender is male and age is greater equals 18 then the tax?

Write a program which takes the gender and salary ,the age from user. the program should calculate and display the following information. i. If gender is male and age is greater >=18,then the tax =5%of the salary. ii. If gender is female and age is >=18,then tax=3%of salary. The program should display the output as follows: Gender = Age = Tax = Salary before tax = Salary after tax =


What is input -output bound program?

input output bound program is a program (or process in precise way), which spends most of time allocated to it for execution, on input/output devices and need very small CPU time for it.