Difference between Const int & int const? is there a difference between Const int dd{4}; &amp; Int const dd{4};. The dd is non modifiable in both cases, so what is the difference?
'const int' vs. 'int const' as function parameters in C++ and C Consider:  int testfunc1 (const int a) {   return a; }  int testfunc2 (int const a) {   return a; }   Are these two functions the same in every aspect or is there a difference?  I'm interested in an answer for the C language, but if there is something interesting in the C++ language, I'd like to know as well.
Find all quadruples of real numbers $(a,b,c,d)$ satisfying the system of equations  $(b+c+d)^{2010}=3a$  $(a+c+d)^{2010}=3b$  $(a+b+d)^{2010}=3c$  $(a+b+c)^{2010}=3d$  I tried to find the solutions using hit and trial and by using some logic also I find two solutions which are $(0,0,0,0)$ and $(\frac{1}{3},\frac{1}{3},\frac{1}{3},\frac{1}{3})$  I think these are the only solutions that exist. Was it just coincidence that Tahir Mahmood went on stage? What are the chances of getting $K$ identical outcomes in a row in a series of $Y$ independent events? Each event has two possible outcomes: a and b.  Each event is independent.  Outcome a has $X\%$ chance of happening.  If we run $Y$ number of such events, what are the chances of getting $K$ outcomes a in a row, at least once?  To put it in practical terms imagine a series of coin tosses. Each coin toss has two possible outcomes: a = heads and b = tails. Outcome a = heads has a chance of $50\%$. If we run $Y = 100$ number of coin tosses, what are the chances of getting $K = 10$ outcomes a=heads in a row, at least once?   I'm using the practical example only so I can express the idea more clearly. I'm interested in finding out the general formulas and computations so that I can run the calculations for any $X$, $Y$, or $K$.  I would also be very interested in knowing how the probabilities would change if the events would not be independent. What if the more outcomes a we have in a row the bigger the chance of getting an outcome a in the next event? What if it's the other way around, and the more outcomes a in a row we have the lower the chance of getting another a? TeX editor with line-spacing preferences Where is my Minecraft folder on Windows? I don't have a minecraft folder. I've looked through forums and videos, followed all the steps. I just don't have one. I have windows 7, and I have "view hidden files" turned on. I have look in the roaming folder of my app data folder, with hidden files turned on. I want to find my folder so I can install a mod, could someone please tell me why my folder isn't showing up? I picture light ray as a composition of photons with an energy equal to the frequency of the light ray according to $E=hf$. Is this the good way to picture this? Although I can solve elementary problems with the formulas, I've never really been comfortable with the idea of an object having or being related to a "frequency". Do I need to learn quantum field theory to really understand this? Deleting multiple elements from a list Existence of elements of order $p^k$ in a finite group By Cauchy's theorem, if a prime number $p$ divides the order of a group $G$, then there is an element $g$ in $G$ whose order is $p$. In addition, if $|G|$ admits a prime decomposition with a factor $p^k$, then Sylow's theorem tells us that a subgroup of order $p^k$ must exist.   My question is the following. If $|G|$ admits a prime decomposition with a factor $p^k$, does this imply that an element of order $p^k$ must exist in $G$?   Update: As explained in Mindlack's answer (among others), the implication does not hold and simple counterexamples exist. In the comments, Mindlack discusses special cases where such an element exists. Is there a difference between Therefor and Therefore? Stack Overflow is not getting refreshed automatically Stack&nbsp;Overflow is not getting refreshed automatically. I have to press F5 explicitly to refresh the website. What might be the issue? Performance of a Trigger vs Stored Procedure in MySQL Table column not align if give color for Table entries My code follows:  \documentclass{book} \usepackage{color,colortbl} \begin{document}  \begin{tabular}{ll&gt;{\color{red}}p{20pc}} a &amp;1 &amp;Test \end{tabular}  \end{document}   The output was:    Some unnecessary vertical space came before the last column. If I remove the tag \color{red} then everything works fine, how can I fix this?  Above said issue was fixed based on the suggestion given by David Carlisle and CarLaTeX, but the same problem was there if I use the supertabular environment, I used supertabular package for auto breaking table and the code follows:  \documentclass{book} \usepackage{color,colortbl,supertabular} \begin{document}  \begin{supertabular}{ll&gt;{\leavevmode\color{red}}p{4pc}&gt;{\leavevmode\color{black}}l&gt;{\leavevmode\color{black}}l&gt;{\leavevmode\color{red}}p{4pc}} a &amp;1 &amp;Test &amp;a &amp;1 &amp;Test\\ a &amp;1 &amp;Test &amp;a &amp;1 &amp;Test\\ \end{supertabular}  \end{document} I've been trying to prove   $$\sum_{k=1}^{n}{(-1)^{k+1} {{n}\choose{k}}\frac{1}{k}=H_n}$$  I've tried perturbation and inversion but still nothing. I've even tried expanding the sum to try and find some pattern that could relate this to the harmonic series but this just seems surreal. I can't find any logical reasoning behind this identity. I don't understand . Is there any proof that doesn't require the integral transform? Pgfplots with custom axis markers Assume you have a trigonometric function, say for simplicity sin(x). When plotting the function, how can one place the x-axis markers on 0, pi/2, pi, 3pi/2, 2pi, instead of the default numeric values that pgfplots uses? sudo credential caching on by default Just installed a minimal ubuntu 12.04, then installed xfce4 and xinit from the command line after first boot.  Totally vanilla installation afaik.  I'm noticing that sudo caches the password until I issue sudo -k to clear it.  This is unexpected behavior in my mind.  I've run xfce4 before and don't recall credential caching being on, nor have I experienced it in the many previous ubuntu installs I've had over the years.  Is this a new feature of Ubuntu?  Is this something that's the result of the minimal install?  Is this an xfce default that's been added recently? Two similar limit problems I have two limit problems which are quite similar, so I've put them both into this post.   $((4^{10}+2^{n})^{\frac{1}{n}})$ $((3n^{2}+n)^{\frac{1}{n}})$   Attempt:  For 1, I'm not sure if this is permissible. I know that $\lim_{n \to \infty}(x^{n}+y^{n})^{\frac{1}{n}} = \max\{x,y\}$. Obviously $4^{10}$ is a constant so it's not quite in the same form, but I believe it is still okay to use this result, and so the limit is $2$.  For 2, I've got $((3n^{2}+n)^{\frac{1}{n}}) = (n(3n+1)^{\frac{1}{n}})$, but then I'm not too sure how to proceed.   I also thought of taking the log and proceeding that way, however in the notes I'm learning from they haven't covered l'hopital yet, so I'm trying to not use it.  Thanks. If you have two envelopes, and ... After trying to delete apache and tomcat, and now trying to reinstall apache 2, I am missing the init.d/apache2 file to start/stop my server.  I am not sure if the new install actualy worked, and my apt-get purge apache2 didn't remove everything in the first place!  How can I get the init.d/apache2 file to test if server starts / is installed properly (I had removed files and directories manually)? I am trying to pass a reference to a two-dimensional array to a function in C++. I know the size of both dimensions at compile time. Here is what I have right now:  const int board_width = 80; const int board_height = 80; void do_something(int[board_width][board_height]&amp; array);  //function prototype   But this doesn't work. I get this error from g++:  error: expected ‘,’ or ‘...’ before ‘*’ token   What does this error mean, and how can I fix it? I'm currently rebuilding our entire intranet from scratch, mostly because the tech behind is out-dated and it has been proved that a lot of information is difficult to find.  Though that is beside the point, what I am wondering is what would be the optimum amount of users to use for qualitative and quantitative testing with a userbase of around 1000 users?  Is there a general rule of thumb for both based on the total number of users you have? or is it just say 5 for qualitative and 10 for quantitative?  What would be the best approach?