fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. char *pigLatin(char *word)
  5. {
  6. int counter = 0;
  7. char *first = &word[counter];
  8. printf("%c", *first); // I just want to get this to print 'h' but it's not.
  9.  
  10. return word;
  11. }
  12.  
  13. int main()
  14. {
  15. char hello[] = "hello";
  16. pigLatin(hello);
  17. printf("%s", hello);
  18. return (0);
  19. }
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
hhello