I am curious to know,whether it is possible to assign array of constants at once at runtime using pointers.
for ex.
FIGURE-1
======================
int *x;
x = (int *) malloc(3 * sizeof(int));
*x= {7,8,2};
printf("first element of array x is %d\n",x[0]);
===========================...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.