fork download
  1. #include <stdio.h>
  2. #define M 2
  3. #define L 15
  4.  
  5. void profile(char t[][L])
  6. {
  7. int i;
  8. for(i=0;i<M;++i) sprintf(t[i],"power_profile%d",i+1);
  9. }
  10.  
  11. int main(void)
  12. {
  13. int i;
  14. char t[M][L];
  15. profile(t);
  16. for(i=0;i<M;++i) printf("%s\n",t[i]);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
power_profile1
power_profile2