I have the following code
int main() { int a=6; void *p; p=&a; p++; }
Does the void pointer point to a specific value (if it holds the address of any data type)?
In the above case, p incremented by 1, even if it indicates an integer value. In my opinion, the above code causes the Implementation Defined behavior.
source share