fork download
  1. #include <stdio.h>
  2.  
  3. void deal( const char * duit[] );
  4. void meal( const char * duit );
  5.  
  6. int main(void)
  7. {
  8. char *suit[4] = { "Hearts", "Diamonds" };
  9. deal(suit);
  10. char *ptr = "Hello";
  11. meal(ptr);
  12. return 0;
  13. }
  14.  
  15. void deal( const char * duit[] )
  16. {
  17. printf ("%s", duit[0]);
  18. }
  19.  
  20. void meal( const char * duit )
  21. {
  22. printf ("%s", duit );
  23. }
Success #stdin #stdout 0s 4352KB
stdin
Standard input is empty
stdout
HeartsHello