fork download
  1. #include <stdio.h>
  2.  
  3. char *return_and_pass(char s[][10]) // OR char return_and_pass(char *s)
  4. {
  5. //s[0]='A'; //modify passed string
  6. //s[3]='H';
  7. printf("%s",s[2]);
  8. return s; //return it
  9. }
  10.  
  11.  
  12. int main(void) {
  13. char ch[]="cool boy negi";
  14. char a[][10]={"Hello!", "Baby", "Luv"};
  15. //printf("%s",return_and_pass(a));
  16. printf("%s",ch);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
cool boy negi