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, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
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:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
question
Engineering, 04.07.2019 18:20
An open feedwater heater operates at steady state with liquid entering at inlet 1 with t? = 40°c and pl = 1 .2 mpa. water vapor att2-200°c and p2 = 1.2 mpa enters at inlet 2. saturated liquid water exits with a pressure of pa 1.2 mpa. neglect heat transfer with the surroundings and all kinetic and potential energy effects, determine the mass flow rate of steam at inlet 2 if the mass flow rate of liquid water at inlet 1 is given as 2 kg/s.
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, 02.08.2019 08:30
question
Mathematics, 02.08.2019 08:30
Questions on the website: 13722365