Code:
#include <stdio.h>
#include <string.h>
Code:
#define MAXSIZE 255
void arrayRev(char arrayDna[]);
int main(void){
   char arrayDna[MAXSIZE];
   while((arrayDna[0] != 'e') && (arrayDna[1] != 'x') && (arrayDna[2] != 'i') && (arrayDna[3] != 't')){
      printf("Enter a DNA sequence consisting of A's, T's, G's, and C's or 'exit' to exit.\n");
      scanf("%c", arrayDna);
   }
   arrayRev( arrayDna );
   return 0;
}
void arrayRev(char arrayDna[]){
   if(arrayDna[MAXSIZE] == 'a'){
      printf('t');
   }
   if(arrayDna[MAXSIZE] == 't'){
      printf('a');
   }
   if(arrayDna[MAXSIZE] == 'c'){
      printf('g');
   }
   if(arrayDna[MAXSIZE] == 'g'){
      printf('c');
   }
}






If anyone could tell me how to post the actual program instead of just the text that would help, otherwise im just trying to replace any "a" in the entered sequence with a "t", any "t"s with "a"s, any "g"s with "c"s, and "c"s with "g"s and then reprint it out. im guessing i have to do something with changing the address but Im stuck.