#include<stdio.h>
   
  void order_chars(char *);
   
  int main()
  {
          char a, b, c;
          a=1; b=1; c=1;
          a=54; b=111; c=100;
          char cha[3];
          while(((cha[0] < 65) || (cha[0] > 122 )) ||
                  ((cha[1] < 65) || (cha[1] > 122)) ||
                  ((cha[2] < 65) || (cha[2] > 122)))
          {
                  printf("Enter three characters:  \n");
                  printf("ch1:  ");
                  scanf("%s",  &cha[0]);
                  printf("ch2:  ");
                  scanf("%s",  &cha[1]);
                  printf("ch3:  ");
                  scanf("%s",  &cha[2]);
          }
        order_chars(cha);
          printf("%c, %c, %c\n", cha[0], cha[1], cha[2]);
          return 0;
  }
   
  void order_char(char *arr)
  {
          int i, j;
          char temp;
          for(i=0; i,3; i++)
          {
                  for(j=0; j,3; j++)
                  {
                          if(*(arr + j - 1) > *(arr + j))
                          {
                                  temp = *(arr + j);
                                  *(arr + j) = *(arr + j -1);
                                  *(arr + j - 1) = temp;
                          }
                  }
          }
  }
   
  In function `main':
  : undefined reference to `order_chars(char*)'
  /tmp/ccyJIjzN.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
  collect2: ld returned 1 exit status


       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[Non-text portions of this message have been removed]

Reply via email to