I don't understand why I can't print the address of the pointer. I know it's pretty fundamental to understand pointers, so any help is appreciated.  void printp(int&amp; test) {         cout &lt;&lt; test &lt;&lt; endl; }  int main() {         int *p = new int;         *p = 1;         int np = 0;  //      printp(p);  // why doesn't this print the address of p? //      printp(&amp;p); // why doesn't this print the address of p?         printp(*p); // prints 1         printp(np); // prints 0  return 0; }   I get the below error when I try using 'printp(p)'.  test.cpp: In function ‘int main()’: test.cpp:17:10: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]   printp(p);  // why doesn't this print the address of p?           ^ test.cpp:5:6: note:   initializing argument 1 of ‘void printp(int&amp;)’  void printp(int&amp; test)       ^~~~~~ test.cpp:17:10: error: cannot bind rvalue ‘(int)p’ to ‘int&amp;’   printp(p);  // why doesn't this print the address of p?
I know references are syntactic sugar, so code is easier to read and write. But what is the difference between a pointer variable and a reference variable?
Do Mandalorians truly never remove their helmets? In episode 3 of The Mandalorian, it is said that Mandalorians never remove their helmets for any reason. Really? Not even to sleep or bathe? Is there any canonical source for this idea? I’m going to assume that the “never” implies “Never removes their helmets in public…” right?  But in flashback scenes to the Mandalorian’s childhood, nobody is really pictured wearing Mandalorian armor let alone helmets. They simply seemed like basic humans who might just be unified by wearing maroon wardrobes all the time.  So what is the deal with this claim? What is the canonical context of the claim?      Looking for in-universe, canonical explanations; not armchair speculation and theories. If none (currently) exist, legends explanation would suffice. Regardless, please provide references and context. Trouble with gradient intuition Group theoretic meaning of natural isomorphisms between certain functors How can I typeset this accented, dotless i? See the rough sketch above. I am able to typeset the accented i shown in the middle (for which I used the \v macro) and, obviously, the plain and simple i shown on the left also. However, I can't figure out how to typeset the one shown on the right. How can I do that? Why does centering not work with calligra? I'm trying out the calligra package for a wedding order of service. Just trying to make the titles look a little nicer. When I use the \centering command, however, it doesn't seem to work:  \centering Test1\\ \calligra{Test}   Produces calligraphic text that doesn't seem to be centered. Is this fixable?    Thanks all,  James How to make a half cylinder? I am having a tough time building a half cylinder and have not found any tutorial showing me how to do that. Prove any orthogonal 2-by-2 can be written in one of these forms.... I'd like to prove that any orthogonal $2 \times 2$ matrix can be written   $$\bigg(\begin{matrix}    \cos x &amp; -\sin x  \\     \sin x &amp; \cos x   \end{matrix}\bigg) \hspace{1.0em} \text{or} \hspace{1.0em} \bigg(\begin{matrix}    \cos x &amp; \sin x \\    \sin x &amp; -\cos x \end{matrix}\bigg)$$  for $0 \le x &lt; 2\pi$.  I have no idea how to do this. I feel like this is something I've missed and is really straightforward but I can't find it in my book... What am I doing wrong? Joint Density of sum of random variables! So, I have this question:    And, what I have tried so far is I let $z_1 = \frac{X + Y}{2}$ and let $z_2 = \frac{X - Y}{2}$ to use change of variables for this question. However, when I work this out and plug it into my joint distribution of $X$ and $Y$ above, I end up with the $z_2$ disappearing and only having $z_1$ left in my joint distribution of $z_1$ and $z_2$. So, then when I go to find the marginal for just $z_1$ (which is $\frac{X + Y}{2}$ &lt;- what I am looking for), there is no $z_2$ therefore, integrating wrt to $z_2$, I get $z_2$ just come up (integral of 1). This is an issue because the bounds are from 0 to $\inf$. Obviously, I can't have infinite in my marginal density so what am I doing wrong?   Also, for question 5, I work it out similarly except I let $z_2 = X$ but I just end up with the exact same density as $f_{x,y}$ as seen in question 4 - is that normal? Please help, I been doing this question for a long time trying various dummy transformations.  Also, for question 4, I found the marginals of $x$ and $y$ and realized that the independence consequence (of the product being equal to the joint) is satisfied but using convolution, I get the same issue of my integral coming out to infinite! Thank you for all the help!   EDIT: Am I doing my bounds wrong? the bound for z_2 is from 0 to inf or 0 to z_1? I have the problem, that PHP replaces all spaces with underscores in POST and GET variables. For example if I have the URL: http://localhost/proxy.php?user name=Max the browser will convert it to http://localhost/proxy.php?user%20name=Max. But if I give the $_GET parameters out, the key is not user name but user_name (note the underscore)! Is there any possibility to change this behaviour? Example where union of increasing sigma algebras is not a sigma algebra Who took care of Naruto when he was young? In episode 350, we see that the Third Hokage took on to take care of Naruto. But towards the beginning of the anime Naruto is seen to be living alone.   Did Naruto live with the Third? If so, why did he leave there? I'd like to delete a file from my Time Machine backups, but there seems to be no option to do so in the Big Sur version of Time Machine. I go to the Time Machine menu and select &quot;Enter Time Machine&quot;. Then I see the view with the stack of windows. I browse to a file and select it. Now I want to delete it so it doesn't exist and take up space in backups. There is no option to delete it - either the action menu in the toolbar, or the control-click context menu. How do I delete a file from Time Machine backups? There used to be a way to do this. (I'd take a screenshot, but the key shortcuts for screenshots don't work in Time Machine. Not sure if this is just a Big Sur thing or if that's always the case.) Update: I should mention I'm using APFS for my Time Machine volume. That seems to be relevant. Also, I contacted Apple support about deleting entire snapshots (slightly different goal than the one here in this question). They said you can't do it anymore. It seems like there's some bugs here, because I have a &quot;Move to Trash&quot; option if I control-click one of my backups. It seems to work initially but then the backup comes back.  I don't like losing this much control over my files. I may look for another backup solution. Can you please explain this to me?          Could you please explain this to me?   I am unable to figure out which to use which situation. I did google, and some posts say they are both the same, even if the second one is more formal. Other posts say could is the past tense of can, but in the above example, I don't think could is used as past tense of can.  What is correct way to use these words? Is there a way to substring a string in Python, to get a new string from the third character to the end of the string?  Maybe like myString[2:end]?  If leaving the second part means 'till the end', and if you leave the first part, does it start from the start? Closed unit interval is connected proof For $a,b,c&gt;0$, Find $$ \lim_{n \to \infty}\left(\frac{a^{1/n}+b^{1/n}+c^{1/n}}{3}\right)^n$$  how can I find the limit of sequence above?  Provide me a hint or full solution. thanks ^^ Defining the Product of Ideals I'm looking for one word which describes what a student who missed classes needs to do What is the difference between "speaking" and "talking"? It seems more politically correct to say that someone is speaking rather than talking.  What is the definitive difference between these terms? Windows Starter Edition, Home and Home Premium do not include gpedit, how do I install it?