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
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
question
Engineering, 04.07.2019 18:10
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
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
History, 17.02.2022 14:00
question
Mathematics, 17.02.2022 14:00
question
Mathematics, 17.02.2022 14:00