I'm wondering why gcc doesn't display an error while compiling, even while using the -Wall option. Also tried the -std=c89 option.  Here's the code:  #include &lt;stdio.h&gt;  int main(void) {    printf("hello, world\n"); }   Sorry if this post is a duplicate but couldn't find a case where this option is being used.  Thanks!
What is the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments? If int main() then return 1 or return 0?  There are numerous duplicates of this question, including:       — For C++, with a very good answer indeed.     Related:
How to install Eclipse? I want to install the latest version of Eclipse but the Ubuntu Software Centre contains an older version.  Is there a PPA or some other way to install latest Eclipse? Please describe the steps for full installation. Post a Form to Popup window not to the parent Does the regularization of a divergent infinite sum yield a unique value?  I.e. do different regularization schemes acting on the same infinite sum produce the same exact value independent of the regulator?  What, exactly, do these values mean?  Or what are they?  My understanding is that they are not "convergent" values.  (Sorry in advance for being a physicist. Is there a closed formula for this summation? I have the summation  $$\sum\limits_{i=1}^n \frac{1}{i^2}$$  And I don't know how to find a closed formula for it. Any ideas? According to my text book:  The Lorentz Force F on a charged particle moving in an electromagnetic field is given by:  $$F= qE + q(v\times B)$$  then it states that "it is to be pointed out that only the electric force does work, while the no work is done by the magnetic force which is simply a deflecting force."  How can this by true won't the the magnetic force have a considerable magnitude, will it now impart kinetic energy to the charge? Any explanations will help a lot. Please keep the terminology simple, thanks. I have an enum construct like this:  public enum EnumDisplayStatus {     None    = 1,     Visible = 2,     Hidden  = 3,     MarkedForDeletion = 4 }   In my database, the enumerations are referenced by value. My question is, how can I turn the number representation of the enum back to the string name.   For example, given 2 the result should be Visible. I am in the process of completing some homework and have come across a question that says: "What is the steady-state current?" It is asking in reference to a circuit that includes two capacitors in parrallel and a DC source of 24V and an AC source given by $\epsilon = 20 \cos(120 \pi t)\ \text{V}$, where $t$ is in seconds. I assume that it is asking when the current is constant. Because naturally the current is not constant due to the AC source, would I just consider the DC source for this? I'm trying to compute this integral, $$\int_{0}^{\infty}\frac{\ln x}{x^{a}(x+1)}dx \hbox{ where } 0&lt;a&lt;1$$ I drew a typical Pacman contour with branch cut at positive real axis. Then, we have $$\int_{\Gamma}\frac{\ln z}{z^{a}(z+1)}dz=\left(\int_{L_{1}}+\int_{L_{2}}+\int_{C_{R}}+\int_{C_{\epsilon}}\right)\frac{\ln z}{z^{a}(z+1)}dz$$ The function has a pole at $z=-1$. Then, by residue theorem, the whole integral becomes  \begin{align*} \int_{\Gamma}\frac{\ln z}{z^{a}(z+1)}dz&amp;=2\pi i\text{res}(\frac{\ln z}{z^{a}(z+1)};-1)\\&amp;=2\pi i\lim_{z\rightarrow-1}(z+1)\frac{\ln z}{z^{a}(z+1)}\\&amp;=2\pi i\lim_{z\rightarrow-1}\frac{\ln z}{z^{a}}\\&amp;=2\pi i\frac{\ln e^{i\pi}}{e^{i\pi a}}\\&amp;=2\pi i\frac{\ln1+i\pi}{e^{i\pi a}}\\&amp;=-\frac{2\pi^{2}}{(e^{i\pi})^{a}} \end{align*} On $L_1$, $z=xe^{i\epsilon}$ where $\epsilon\leq x\leq R$  On $L_{2}$, $z=xe^{i(2\pi-\epsilon)}$ where $\epsilon\leq x\leq R$  On $C_{R}$, $z=Re^{i\theta}$ where $\epsilon\leq\theta\leq2\pi-\epsilon$  Lastly on On $C_{\epsilon}$, $z=\epsilon e^{i\theta}$ where $\epsilon\leq\theta\leq2\pi-\epsilon$  So I tried to compute them separately and I anticipate the curves will both go to $0$ by ML inequality, and two linear integrals will consist of the term $\int_{0}^{\infty}\frac{\ln x}{x^{a}(x+1)}dx$ and hence simply solve for it. But I'm having trouble physically solving it out. I think the log is throwing me off. Can anybody please help me? The batcave, in any version of Batman, is large.  Plus there's the batmobile, which required special construction, plus the batcomputer and numerous other batwidgets.  How did a good sized batcave get built without the land above it being torn up and without requiring a huge construction crew?  And, after the cave was built, how was the batmobile built in secret, without someone involved in it being able to make the connection between the car they built and the one that shows up in the news when Batman is first seen?  (While he's in Gotham, a masked vigilante is news that would end up nation wide.)  There would also be the need for secrecy so vilains can't find out how it is built and what the specs are.  And then there's the continual supply of batwidgets.  Just as with the batmobile, there's the need for these items and how they work to be kept secret.  It'd take several factories to produce all that Batman uses and major construction for any batcave I've seen (which is in movies and on TV).  How is all this done in secret?  (Or is there a trail of bodies?) See YouTube videos in Anaglyph mode How to see a YouTube video in  from a non-3D Android device? I am not able to enable Anaglyph mode from the YouTube application. Many introductory quantum mechanics textbooks include simple exercises on computing the de Broglie wavelength of macroscopic objects, often contrasting the results with that of a proton, etc.  For instance, this example, taken from a textbook:     Calculate the de Broglie wavelength for      (a) a proton of kinetic energy 70 MeV      (b) a 100 g bullet moving at 900 m/s   The pedagogical motivation behind these questions is obvious: when the de Broglie wavelength is small compared to the size of an object, the wave behaviour of the object is undetectable.  But what is the validity of the actual approach of applying the formula naively? Of course, a 100g bullet is not a fundamental object of 100g but a lattice of some $10^{23}$ atoms bound by the electromagnetic force. But is the naive answer close to the actual one (i.e. within an order of magnitude or two)? How does one even calculate the de Broglie wavelength for a many body system accurately? When is $\sin(x)$ rational? How can I publish my game (*.aab file) on google play? After updating to 2.81, my previous works (done in 2.80) doesn't show colors This image is what's supposed to look like in Edit Mode/Object Mode(although I still can make these screenshots even after the update by pressing F12 which is rendering) but the following is what my donut looks like now in Blender.  It shows no shadows and colors. The only thing I did is updating blender to 2.81 from 2.80. And I don't know what but something seems off with blender. Sometimes I can't click any objects so I just pressed tab and then now it's all clickable. Seems like I was in edit mode, but to me, it looked exactly like object mode. I don't know what is wrong with it. How do I make my colors show up again? Why don't self-closing script elements work? What is the reason browsers do not correctly recognize:  &lt;script src="foobar.js" /&gt; &lt;!-- self-closing script element --&gt;   Only this is recognized:  &lt;script src="foobar.js"&gt;&lt;/script&gt;   Does this break the concept of XHTML support?  Note: This statement is correct at least for all IE (6-8 beta 2). Are PPAs safe to add to my system and what are some "red flags" to watch out for? I see a lot of interesting programs out there that can only be obtained by adding a "PPA" to the system but, if I'm understanding correctly, we should stay within the official "repositories" for adding software to our system.   Is there any way for a novice to know if a "PPA" is safe or if it should be avoided? What tips should the user know about when dealing with a PPA?. How can I prove that prove $n^5 - n$ is divisible by $30$? I took $n^5 - n$ and got $n(n-1)(n+1)(n^2+1)$ Now, $n(n-1)(n+1)$ is divisible by $6$. Next I need to show that $n(n-1)(n+1)(n^2+1)$ is divisible by $5$. My guess is using Fermat's little theorem but I don't know how. Unlock by fingerprint only How can I show that $n^2&lt;n!$ for all $n\geq 4$ Step 1 For $n=1$, the LHS=$4^2=16$ and RHS=$4!=24$. So LHS$&lt;$ RHS. Step 2 Suppose the result be true for $n=k$  i.e., $k^2&lt;k!$ Step 3 For $n=k+1$ $(k+1)^2=k^2+2k+1$ What will be the next step? Assume   $$\lim_{n\to \infty}{x_ny_n}=0$$  then  $$\lim_{n\to \infty}{x_n}=0$$ or $$\lim_{n\to \infty}{y_n}=0$$  I couldnt find two series who disprove that.. just hint please thanks