Professional Documents
Culture Documents
2nd Year Subir Das 3rd Assignment
2nd Year Subir Das 3rd Assignment
#All programme are written and compiled in gnu gcc compiler code blocks.
# A c program to input numbers in an array and display that will reverse the elements of an array?
#algorithm
Input the number of elements of an array.
Input the array elements.
Traverse the array from the last.
Print all the elements.
int main()
scanf("%d",&Size);
scanf("%d", &a[i]);
j = i - 1;
i = 0;
while (i < j)
Temp = a[i];
a[i] = a[j];
a[j] = Temp;
i++;
j--;
}
Programming class assignment
Name :-lovekush kumar # roll no:-27600120018 #sec :-A stream -cse
printf("\nResult of an Reverse array is: ");
return 0;
#Input:-
#output:-