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.  
  14. int main()
  15. {
  16. char hello[] = "hello";
  17. pigLatin(hello);
  18. printf("%s", hello);
  19. return (0);
  20. }
  21.  
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
hhello