Print the elements of the array on the screen

Assignment Help Basic Computer Science
Reference no: EM13870223

1. Consider the following syntax of a program.

int i, j = 26;

int *pi, *pj = &j;

*pj = j + 5;

i = *pj + 5;

pi = pj;

*pi = i + j;

Solve the problem by finding and explaining the following:

(1) &i

(2) &j

(3) pi

(4) pj

(5) *pi

(6) *pj

(7) i

(8) pi

(9) *(pi-1)

(10) (*pi+2)

(11) (pi+2)

 

2. Write a C program using a pointer for keying six integers by the user. The six values are stored in an array using a pointer. Then print the elements of the array on the screen.

3. Modify the solution of exercise 2 using a pointer to make the C program to print the elements of the array in reverse order.

4. Write a C program to sort an array of 12 integers in descending order.

5. Write a C program to sort an array of 15 integers in an ascending order.

Reference no: EM13870223

Questions Cloud

Estimate the final water temperature : Liquid water at 30.0°C and liquid water at 90.0°C are combined in a ratio (1 kg cold water/2 kg hot water). (a) Use a simple calculation to estimate the final water temperature. For this part, pretend you never heard of energy balances.
Personnel comprise the remainder of the organization : Suppose you are the Information Security Director at a small software company. The organization currently utilizes a Microsoft Server 2012 Active Directory domain administered by your information security team. Mostly software developers and a relati..
Write a program that checks whether user entered full : Write a program that checks whether user entered full_name1 and full_name2 match. For example if user entersJake Kirkland and Jake Kirkova
What will be the results in terms of the insurance policy : Suppose that insurance companies are compelled to offer complete coverage: a(L) = L. What will be the results in terms of the insurance policy that is offered and the level of care the warehouse owner will take?
Print the elements of the array on the screen : 2. Write a C program using a pointer for keying six integers by the user. The six values are stored in an array using a pointer. Then print the elements of the array on the screen.
Prepare the journal entries that csm will make to accrue : Prepare the journal entry that CSM will make when the note is established. Prepare the journal entries that CSM will make to accrue interest on June 30 and December 31. Prepare the journal entry that CSM will make to record the interest and principal..
Question regarding the cross-sectional area : A coil with 380 windings is wound around a cast iron ring. the cast iron ring has a mean diameter of 125mm and a cross-sectional area of 600mm squared. The magnetic field strength is 3000Am while the relative permeability of the core is 780. deter..
A device that converts mechanical into electrical energy is : A device that converts mechanical into electrical energy is?
Two packets over a medium at the same time : Which of the following condition is used to transmit two packets over a medium at the same time?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How many different seven-digit phone numbers can be formed

How many different seven-digit phone numbers (ignoring area code) can be formed? Can city of 2 million people be served by single area code? Describe.

  How wikimedia foundation meet criteria for knowledge create

How does the Wikimedia Foundation meet the criteria for a knowledge-creating organization

  Explain the principle of comparative advantage

Explain the principle of comparative advantage

  Write pseudocode for an iterative algorithm

Write pseudocode for an iterative algorithm that determines a DFS spanning tree for an undirected graph. Base your algorithm on the traversal algorithm dfs.

  Write paper on smart phones and tablets

Imagine you are a System Architect at Panther Industries. You job is to submit a report to your manager about common technologies and the use of these technologies in your corporate Information Technology (IT). Smart phones/ Tablets/ netbook archit..

  User defined company class

Create a user defined Company class the class will include Company Name, Stock Symbol and stock value per share. Include a parameterized constructor and get methods for each of the instance variables. Also include a toString method.

  • create a network reference model diagram of the current

Create a network reference model diagram of the current network that describes the role of each layer for both OSI and TCP/IP that are used to transmit data between the devices and applications specifically in your retail store.

  Design analog circuit using transistor

Construct the circuit shown in Figure 1 below with the parameters shown in the circuit.

  Significant to control changes to asset baselines

Why is it significant to control changes to asset baselines? Explain why is labeling process approached hierarchically?

  Write down differences in company policies of firm

For Firm ABC, each of the relations is in 3NF. Write down two differences should exist in company policies of Firm ABC? Explain your answer.

  How are adc used in medical devices

How are ADC's used in medical devices? Please give examples

  Web e mail

Is web e mail access easier to use than other versions of e-mail.

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