Siaw
2011-09-20 01:50:29 UTC
Declare an array (character data type) that contains 6 columns. Initialize the array with the characters A to F during excution time (run time). Then write a program to reverse the content in the array. Example:
Before: A,B,C,D,E,F After: F,E,D,C,B,A
[Note: You are allow to declare ONLY ONE array in the program]
______________________________________…
Below is my coding so far....
#include
#include
#include
main()
{
char arr[6] = {'A','B','C','D','E','F'};
strrev(arr);
printf("Reverse of string is \n%s\n",arr);
return 0;
}
________________________________________________________________________________
What wrong with my coding? Help please ~