Help for this page

Select Code to Download


  1. or download this
    int* a;
    a = (int*)malloc(...);
    int* b = a;
    a = (int*)realloc(a, ...);
    /* b now contains garbage */
    
  2. or download this
    my @array;
    my $aref = \@array;
    push @array, ...;
    # Is $aref still valid? Yes.