I've been curiously and intently reading up to the pointers part, but been abruptly introduced to an unknown line of code:
#include <stdio.h>
int main(void)
{
int i = 10;
printf("The value of i is %d\n", i);
printf("And its address is %p\n", (void *)&i); // <<< HERE
// %p expects the argument to be a pointer to void
// so we cast it to make the compiler happy.
}
Well, while I can't say I don't know casting at all, I'm still not quite familiar with it. So, as a beginner, suddenly getting an unexplained line of code of casting was a bit out of place, because all the other new terms up to this point had been flagged for later explanation. It would be great to fill in the gaps and be a little verbose for the sake of fullness.
Anyways, I appreciate the effort! And I'm gonna say this is such a good guide, I got all my questions answered!
I've been curiously and intently reading up to the pointers part, but been abruptly introduced to an unknown line of code:
Well, while I can't say I don't know casting at all, I'm still not quite familiar with it. So, as a beginner, suddenly getting an unexplained line of code of casting was a bit out of place, because all the other new terms up to this point had been flagged for later explanation. It would be great to fill in the gaps and be a little verbose for the sake of fullness.
Anyways, I appreciate the effort! And I'm gonna say this is such a good guide, I got all my questions answered!