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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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