Note that this is different: int x; void f(volatile int *p){ memset((void*)p, 0, sizeof x); } int main(void){ f(&x); }
-
-
Replying to @volatile_void
On compilers that define that pointers can be round-tripped through other pointer types (most compilers), the above is fine.
1 reply 0 retweets 2 likes
Replying to @volatile_void
As far as I can tell your example is valid on all compilers (defined by the language).
6:32 AM - 8 Jun 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.