fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int vec[] = {52, 13, 12, 14};
  5. printf("Endereço de vetor %p\n", (void*)vec);
  6. printf("vec[0] = %p, vec[1] = %p, vec[2] = %p, vec[3] = %p\n", (void*)&vec[0], (void*)&vec[1], (void*)&vec[2], (void*)&vec[3]);
  7. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
Endereço de vetor 0xffb6c9a0
vec[0] = 0xffb6c9a0, vec[1] = 0xffb6c9a4, vec[2] = 0xffb6c9a8, vec[3] = 0xffb6c9ac