What is the result of the following line:
int* ptr;
printf("%x, %x\n", ptr, &ptr);
I know that ptr
is an address in a memory, but what is &ptr
?
The definition of a result is how something ended or the outcome of some action. An example of result is a house that smells of fresh baked bread after baking bread. An example of result is the answer received in a math calculation.
1 : something that results as a consequence, issue, or conclusion also : beneficial or tangible effect : fruit. 2 : something obtained by calculation or investigation.
The result of a certain action is called a consequence. The word repercussion often refers to a negative consequence. The word aftermath is usually reserved for the consequences of a major event—what happens after it.
&ptr would be the address for the memory location that ptr is held in. Essentially it is a pointer to a pointer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With