Error: invalid conversion from 'int' to 'int*' [-fpermissive] while initialising pointer address
I’m trying to assign the value of 0x0010 to pointer ptr1 in the following code that demonstrates how pointers interact with addition/subtraction: #include <stdio.h> int main(void) { int * ptr1=0x0010; double * ptr2=0x0010; printf("%p %p\n", ptr1+1, ptr1+2); // Increment by 4 then 8 printf("%p %p\n", ptr2+1, ptr2+2); // Increment by 8 then 16 printf("%p %p\n",… Read More Error: invalid conversion from 'int' to 'int*' [-fpermissive] while initialising pointer address