View Single Post
Old Feb 21st, 2005, 3:53 PM   #3
ViZioN
Newbie
 
Join Date: Feb 2005
Posts: 3
Rep Power: 0 ViZioN is on a distinguished road
I'm not completly sure where to add in youe example code

The code that calls the function at the moment is,
answer2=convert(answer);
  	printf("\n");
   printf("%s", answer2);

and my function is declared at the top of my program as

char convert(int)

I'm new to C and pointers (only been learning C 4 weeks). Can you explain how to alter the other lines of my code so that the program works correctlly.

Thanks in advance,

Dave
ViZioN is offline   Reply With Quote