(clang) const void* const pointer confusion
This commit is contained in:
1 parent
56a7cb865a
commit
a08e7d979c
1 file changed
+4
-1
+4
-1
@@ -2,6 +2,9 @@
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("hello world");
|
||||
const void* pointer = (void*)(1000);
|
||||
printf("original pointer = %p\n", pointer);
|
||||
pointer = NULL;
|
||||
printf("changed pointer = %p\n", pointer);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user