Will the following program execute?

Will the following program execute? void main()
{
void *vptr = (void *) malloc(sizeof(void));
vptr++;
}
It will throw an error, as arithmetic operations cannot be performed on void pointers.

0 comments:

Post a Comment

Blogger news