GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — c-cpp-practice/arrayDelete.c at master · op-m/c-cpp-practice Expand file tree/ Copy patharrayDelete.cMore file actions 22 lines (22 loc) · 574 Bytes / Copy patharrayDelete.cFile metadata and controls22 lines (22 loc) · 574 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #include <stdio.h> main() { int LA[] = {1,3,5,7,8}; int k = 3, n = 5; int i, j; printf("The original array elements are :\n"); for(i = 0; i<n; i++) { printf("LA[%d] = %d \n", i, LA[i]); } j = k; while( j < n){ printf("Value of j is %d , k is %d and n is %d \n", j, k, n); LA[j-1] = LA[j]; printf("Value of LA[%d] = %d and LA[%d] = %d \n", j-1, LA[j-1], j, LA[j]); j = j + 1; } n = n -1; printf("The array elements after deletion :\n"); for(i = 0; i<n; i++) { printf("LA[%d] = %d \n", i, LA[i]); } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |