const char* arr[3];  arr[0] = &quot;Hello&quot;; arr[1] = &quot;C++&quot;; arr[2] = &quot;World&quot;; for (int i = 0; i &lt; 3; i++) {     cout &lt;&lt; arr[i]; } int* pInt[3]; for (int i = 0; i &lt; 3; i++) {     pInt[i] = &amp;i;     cout &lt;&lt; pInt[i] &lt;&lt; endl; }  I saved char address into the array(arr) and the output was HelloC++World. The second time I saved int address into the array(pInt) and the Output was Address. Why is it different?
I'm using C++ to understand how exactly pointers work. I have this piece of code using arrays, which I'm using just to understand how the equivalent works with pointers.  int main() {         int arr[10] = {1,2,3};         char arr2[10] = {'c','i','a','o','\0'};     cout &lt;&lt; arr &lt;&lt; endl;     cout &lt;&lt; arr2 &lt;&lt; endl; }   However when I run this, arr outputs the address of the first element of the array of ints (as expected) but arr2 doesn't output the address of the first element of the array of chars; it actually prints "ciao".  What is it that I'm missing or that I haven't learned yet about this?
SVG donut slice as path element (annular sector) "physical block size is 2048 bytes, but Linux says it is 512" when formatting USB - How to create a bootable USB without this error Spacial curvature and expanding space If we take the analogy that in an empty space the space is just a flat sheet then if there is a single planet or a star then the flat sheet will curve below the planet leaving a curvature shaped like a hemisphere below the object, my question is, Does this curvature change as space expands? What's the 1 inch square knob sticking out of the wall? Generators and relations for $\text{PSL}(2, \mathbb{F}_q)$ Is there a nice presentation for the group $\text{PSL}(2,\mathbb{F}_q)$, for every prime $q$?  (I don't have any particular definition in mind for "nice", other than, say, a small number of generators and relations.) The muffins were rock hard, what did I do wrong? What is the difference between Shrink Database and File? DBCC ShrinkDatabase() DBCC ShrinkFile()    Do I need to run both DBCC commands in order to shrink the database? What is the difference between these two above? How can one change the timestamp of an old commit in Git? The answers to  describe a way to amend previous commit messages that haven't yet been pushed upstream.  The new messages inherit the timestamps of the original commits.  This seems logical, but is there a way to also re-set the times? How can I see my progress for different badges? I am trying to obtain more badges on Stack Overflow. For example, to gain Archaeologist I need to edit 100 inactive posts but I am not keeping track of the number of posts I've edited. For Deputy I need to raise 80 helpful flags, etc. How can I view all my statistics about the badges, such as how many more edits I need to do, etc. I'm not doing it for badges, but I can spend a bit more effort if I'm close to getting a badge. Concecutive last zeroes in expansion of $100!$ Show a,b,c congruences when $a^2+b^2=c^2$ i would like to know how to prove that if $a^2+b^2=c^2$ then   a) $3|a$ or $3|b$  b) $5|a$ or $5|b$ or $5|c$  c) $4|a$ or $4|b$   Also that $a^2+b^2+c^2+1$ can't be divisible by 8  Thank you very much! Using trickle to limit the bandwidth of a VirtualBox VM I'm trying to limit the bandwidth of a virtual machine running via VirtualBox.   trickle -d 5 virtualbox doesn't work, I believe because of an issue with child processes (trickle -d 5 sudo apt-get upgrade doesn't work either)  How can I limit the download/upload bandwidth of VirtualBox's VMs? An inequality involving 4 real or complex numbers Let a,b,c,d be real or complex numbers with absolute value less than $1$. Is the following true:  $$|ab-cd| \leq |a-c| +|b-d|?$$ When I open a window to air out the room, how does the smell disperse? Let's say I'm in a room with some kind of noxious stink, possibly of flatulent nature.  The quickest way to right the world that comes to mind is to open a window.  When I open a window, how do the stank particles leave the room? When do I have to use 'will' instead of 'going to'? Does going to only express an intention and will some kind of prediction that doesn't necessarily happen?  EDIT: Thanks for all your answers. I asked this question because I always fail to complete exercises like this from an ESL book:   We  will fly to Venice in June. (Correct: But, how can I be sure that I'm not sick in June?) Philipp will be 15 next Wednesday (Correct: Since his birthday is a fixed day, this will happen). They will get a new computer. (Wrong: Why?, If I need a new computer, I simply get a new one) In 2020 people are going to buy more hybrid cars.  (Wrong, Why? Who can tell for sure). Mysql: Select all data between two dates Difference between confidence intervals and prediction intervals For a prediction interval in linear regression you still use $\hat{E}[Y|x] = \hat{\beta_0}+\hat{\beta}_{1}x$ to generate the interval. You also use this to generate a confidence interval of $E[Y|x_0]$. What's the difference between the two? How to detect Safari, Chrome, IE, Firefox and Opera browser? Possible Duplicate:          This is something I haven't quite figured out yet, but I have been using function(){}() just because my VIM syntax highlight screws up if I add the parenthesis, although I've seen (function(){})() around many times, maybe its an IE thing?  edit:  var singleton = function() {     // code }();  var singleton = (function() {     // code })(); Star vs Heart icon to represent save as a favourite I am working on a mobile app that involves the user saving a favourite location. I wanted to use an icon to represent that feature, but I'm not sure which one is better – a star or a heart icon.  Some say heart icon tends to increase the rate of productivity, and some say they are used to a star icon to 'save' or 'bookmark' something.  What do go you guys think?