Are there any errors in the following program

Assignment Help Computer Engineering
Reference no: EM13322504

Are there any errors in the following program? If so, please point them out and correct them. Explain why those errors are wrong.

#include <iostream>
using namespace std;
void display(int x[], int size);
void compute(const int x[], int size);
int main()
{
int y[5]={0};
compute(y,5);
}
void display(int x[], int size)
{
for (int i=0; i<size; i++)
cout << x[i];
}
void compute (const int x[], int size)
{
for )int i=0; i<size; i++)
x[i]=2*i+1;
size=size*2;
display (x, size);
}

 

Reference no: EM13322504

Questions Cloud

Calculate the difference in pressure at point a and point b : Some distance downstream, the velocity profile can be (very) roughly approximated by a region inside the wake with u = U/2 and an exterior region with u = 3U/2.
Find the maximum possible value of angular velocity of ball : A ball of mass (m) 0.5 kg is attached to the end of a string having length (L) 0.5 m. The maximum possible value of angular velocity of ball is
Explain what is the buffer strength : What is the buffer strength (ie the total of Ha and A). The concentration of weak base in the buffer on 0.126 M The concentration of weak acid in the buffer is 0.04906
Find the frequency of the siren heard by the car driver : A police car with a siren of frequency 8 kHz is moving with uniform velocity 36 km/hr towards a tall building which reflects the sound waves. The frequency of the siren heard by the car driver is
Are there any errors in the following program : Are there any errors in the following program? If so, please point them out and correct them. Explain why those errors are wrong.
Various roles and responsibilities within an organization : Managers have various roles and responsibilities within an organization. The key purpose of this project is to demonstrate your understanding of the managerial role within organizations.
Execute strategic global business plan : Why are operational processes so important when trying to execute your strategic global business plan?
Explain what is the pressure of dry h2 in mmhg : What is the pressure of dry H2 in mmHg. In atm. d. Assuiming ideal gas behavior, how many moles of H2 has were collected.
How does this force compare to the weight of an electron : The human eye can detect light intensities as small as about 8 10-23 W/m2. How does this force compare to the weight of an electron

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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