In this example, what will it happen if I assign for example:
pk = 6;
Thanks!
You will get the following message in CS50 IDE: error: incompatible integer to pointer conversion assigning to 'int *' from 'int'
.
In the code above, pk
is a pointer to an integer, not an integer itself. Therefore, assigning an integer to it will give you a compile-time error.