Monday 27 August 2012

Array Reverse | c program array reverse

 Array reverse c code

Array reverse c code/
* reverse.c */
/* Prints an input sequence backwards. */
#include
#define SIZE 20

int main() {
int i, n;
int nums[SIZE];

/* Read numbers into array. */
/* Stop when 0 is found */
for (n = 0; n < SIZE; ++n)
 {
 int input;
scanf("%d", &input);
 if (input == 0)
 break;
nums[n] = input;
}
for (i = n-1; i >= 0; --i)
printf("%d ", nums[i]);
return 0;
}
code for array reverse
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: