int x[] = {1, 2, 3, 4, 5};
int u;
int *ptr = x;
????
for( u = 0; u < 5; u++ )
{
printf("%d-", x[u]);
}
printf( "\n" );
a) *ptr + 3 = 10;
b) *ptr[ 3 ] = 10;
c) *(ptr + 3) = 10;
d) (*ptr)[ 3 ] = 10;
e) *(ptr[ 3 ]) = 10;
No comments:
Post a Comment