subject
Engineering, 13.03.2020 18:25 20heldmadison

The following script will delete an element of desired location from an array. First, run the following script then put comments in the script that will explain how the deletion and the adjustment on the array takes place. #include int main() { int a[50],i, pos, size; printf("\nEnter size of the array: "); scanf("%d",& size); printf("\nEnter %d elements in to the array:", size); for(i = 0; i < size; i++) scanf("%d",&ali); printf("\nEnter position where to delete: "); scanf("%d",&pos); i = 0; while(i != pos-1) i++; while(i < 10) {a[i] = a[i+1]; i++; } size- for(i = 0; i < size; i++) printf("%d", a[i]); return 0; getchar(); } (from 100+ Most Important C Programs with Output: for Students & Teachers by Rohit Gupta, Amazon. com)

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of 1.5 kg of air at 120 kpa and 24°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
question
Engineering, 04.07.2019 18:10
Which of the following refers to refers to how well the control system responds to sudden changes in the system. a)-transient regulation b)- distributed regulation c)-constant regulation d)-steady-state regulation
Answers: 1
question
Engineering, 04.07.2019 18:10
What are the two (02) benefits, which may result from a successful implementation of preventive maintenance (pm) program in an organization? (clo3)a)- lean manufacturing b)-overlapping responsibilities c)-the planner is not qualified d)-accurate contractor information e)-reduction in equipment redundancies f)-accurate stores information
Answers: 3
question
Engineering, 04.07.2019 18:20
Agas mixture consists of 8 kmol of h2 and 2 kmol of n2. determine the mass of each gas and the apparent gas constant of the mixture.
Answers: 3
You know the right answer?
The following script will delete an element of desired location from an array. First, run the follow...
Questions
question
Mathematics, 05.05.2021 21:50
question
Mathematics, 05.05.2021 21:50
question
English, 05.05.2021 21:50
question
Mathematics, 05.05.2021 21:50
question
Biology, 05.05.2021 21:50