Hi every one,
include <stdio.h>
include <conio.h>
define SIZE 4
int
main(){
char Menu[SIZE] = {'A','B','C','D'};
int i;
for(i=0; i<(SIZE); i++){ // print the array elements
printf("\t%c",Menu[i]);
}
getch();
}
I want to swap the elements of the array for e.g. if I pass A and D or Menu[0], Menu[3], then the resulting array should be something like this when I print it:
D, B, C, A
I want to make use of pointers, I am new to C so don't know how to go about it......
Regards.