Answers for "pointer to array in c"

C
0

how to make a pointer point to a the last value in an array

#include <stdio.h>

int main( void )
{
    int a[4] = { 0, 1, 2, 3, };

    int *p = (int *)(&a + 1) - 1;

    return 0;
}
Posted by: Guest on January-10-2020

Code answers related to "C"

Browse Popular Code Answers by Language