fork(3) download
  1. #include <stdio.h>
  2.  
  3. typedef struct {
  4. char array[16];
  5. } Tipo;
  6.  
  7. void funcao(Tipo p) {
  8. printf("%zd\n", sizeof(p));
  9. printf("%s", p.array);
  10. }
  11.  
  12. int main(void) {
  13. Tipo dado = { .array = "teste de array" };
  14. funcao(dado);
  15. }
  16.  
  17. //http://pt.stackoverflow.com/q/180326/101
Success #stdin #stdout 0s 4304KB
stdin
Standard input is empty
stdout
16
teste de array