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
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
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
Athin walled concentric tube exchanger is used to cool engine oil from 160°c to 60°c with water that is available at 25°c acting as a coolant. the oil and water flow rates are each at 2 kg/s, and the diameter of the inner tube is 0.5 m and the corresponding value of the overall heat transfer coefficient is 250 w/m2. oc. how long must the heat exchanger be to accomplish the desired cooling? cpwater=4.187 kj/kg-candcpengine el=2.035 kj/kg·°c, oil . 120]
Answers: 1
You know the right answer?
The following script will delete an element of desired location from an array. First, run the follow...
Questions
question
Geography, 28.03.2021 05:10
question
Mathematics, 28.03.2021 05:10
question
Mathematics, 28.03.2021 05:10
question
Mathematics, 28.03.2021 05:20
Questions on the website: 13722366