Hello,
I am very new to C (as in, I started last week), and am having trouble with this piece of code.
Elsewhere in the code, b is set to equal 2. My question is: when "sizeof(unsigned int)" is written, what does that refer to? The largest number that can be assigned to an unsigned int? And if the statement is false, then does b stay equal to 2?Code:if (b >= sizeof(unsigned int)) b = 0; *(ptr + b) = c;