fork(1) download
  1. #include <stdio.h>
  2.  
  3. typedef struct {
  4. unsigned int array[2];
  5. } Valor;
  6.  
  7. void teste(Valor valor) {
  8. printf("%p, %d", (void *)&valor, valor.array[0]);
  9. }
  10.  
  11. int main(void) {
  12. Valor valor;
  13. valor.array[0] = 10;
  14. printf("%p, %d", (void *)&valor, valor.array[0]);
  15. teste(valor);
  16. }
  17.  
  18. //https://pt.stackoverflow.com/q/581809/101
Success #stdin #stdout 0s 5512KB
stdin
Standard input is empty
stdout
0x7ffd5990d9f0, 100x7ffd5990d9d8, 10