I am confused between precedence of operators and want to know how this statement would be evaluated.  # include &lt;stdio.h&gt;  int main() {   int k=35;     printf("%d %d %d",k==35,k=50,k&gt;40);     return 0;   }   Here k is initially have value 35, when I am testing k in printf I think :   k&gt;40 should be checked  which should  result in 0 k==35 should be checked and which should result in 1 Lastly  50  should get assigned to k and which should output 50   So final output should be 1 50 0, but output is 0 50 1.
Can it be assumed a evaluation order of the function parameters when calling it in C ? According to the following program, it seems that there is not a particular order when I executed it.   #include &lt;stdio.h&gt;  int main() {    int a[] = {1, 2, 3};    int * pa;      pa = &amp;a[0];    printf("a[0] = %d\ta[1] = %d\ta[2] = %d\n",*(pa), *(pa++),*(++pa));    /* Result: a[0] = 3  a[1] = 2    a[2] = 2 */     pa = &amp;a[0];    printf("a[0] = %d\ta[1] = %d\ta[2] = %d\n",*(pa++),*(pa),*(++pa));    /* Result: a[0] = 2  a[1] = 2     a[2] = 2 */     pa = &amp;a[0];    printf("a[0] = %d\ta[1] = %d\ta[2] = %d\n",*(pa++),*(++pa), *(pa));    /* a[0] = 2  a[1] = 2 a[2] = 1 */  }
My question is in the title: Do black holes have a moment of inertia?  I would say that it is: $$I ~\propto~ M R_S^2,$$ where $R_S$ is the Schwarzschild radius, but I cannot find anything in the literature. Ubuntu to Kubuntu switch! I have been running Ubuntu for about a year, now I would like to switch to kubuntu. Is it possible that I can port all the configuration data from the home folder of Ubuntu to kubuntu? (Without causing some serious trouble) If I copy all them contents of the home folder (Including the hidden files and folders) will I be able to get the same application configurations ? I know that copying the Thunderbird folder copies the emails on the newer installation, will it work to other applications? replacement wood threshold insert for metal door I have some late 70's doors and one is missing a threshold insert (the adjustable wood kind), anybody know of where one could by just the "wood strip" that goes in and screws down (there is a metal piece that sticks up into the wood, though you can't see it)?    They have about 4 screws that go down into them? Fight 707 arrives at/in Washington D.C. in ten minutes Fight 707 arrives at Washington D.C. in ten minutes. Fight 707 arrives in Washington D.C. in ten minutes.     Do we have to use 'at' or 'in' in this case? Washington D.C. is a big city, so we have to use 'in' normally. However, because the plane leaves the city soon, the city can be a particular point on a map. So, can we use 'at' in this case? Show that an operation being commutative is a structural property Resizing point on zoom out I've added a point on map like this but it is static in size.   How to resize that point on zooming?  Map on zoom out Help with a proof. Countable sets. 70s UK science fiction TV show with time travel and telepathic cat I'm trying to identify a science fiction series on UK TV during the 70s, but I can only recall the following:   A party of adults and children. There was a woman with a telepathic bond to her cat: she could look into its eyes to see what it had seen. Time travel was involved. I think it may have been inadvertent or uncontrolled time travel. On one occasion the party encountered an Elizabethan seaman who demanded to know if Elizabeth was still queen. They party replied "err... yes" because they didn't want to have to explain time travel. How does one restrict number of allowed types in Java generic type This question is pretty simple: I'd like to have the possibility to get the exact size of a picture in LaTeX with, for example, the macro \the.  In fact, I've founded the way \settoheight{} and so on, but it didn't work at all. What I've got doesn't match with what I can see in the image properties (I suppose that's the name in English). The result: 8pt versus 1300 pixels. It's may be a mis-use...  Edit: In the end, my aim was to find a way to fit the picture in LaTeX. If width and height were both less than the dimensions of the body, then it should just be centred. It look like this :     Require:   \usepackage{graphicx} \usepackage{xifthen} \usepackage{calc}   Code (pretty ugly, I agree):   % Centrering+fitting for image, with captation and label (not auto) \newlength\imageheight \newlength\imagewidth \newcommand{\pic}[3]{% \settoheight\imageheight{\includegraphics{pictures/#1.png}}% \settowidth\imagewidth{\includegraphics{pictures/#1.png}}% \ifthenelse{\lengthtest{\imagewidth &gt; \textwidth}}{\ifthenelse{\lengthtest{\imageheight &gt; \imagewidth}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[height=0.85\textheight]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[width=0.95\textwidth]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}}{\ifthenelse{\lengthtest{\imageheight &gt; \textheight}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[height=0.85\textheight]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}}} %   To use it : put your png files in a "pictures" directory, then, just simply call the picture like this : \pic{name_whitout_extension}{Captation_if_needed}{Label_if_needed}.    Edit 2 :   Thanks to Martin Scharrer's easyfig package, I've got a more or less 1,6 times faster solution to put my pictures, centred, with the perfect size.  CTAN:   VC:   Version v1.2 – 2012/05/15    This could be useful for some others, I hope. How much does it cost to have a custom ASIC made? Is there an easy way to disable this laptop's touchpad? Specifically, I'm on a . I'd like to disable the  so that I can re-enable if my mouse were to run out of batteries (so physically breaking the connection to the motherboard or uninstalling the driver will not be the best options). In the Control Panel, when I go to "Mouse" and find the touch pad, there is no disable option. Any ideas?  Edit: I am on Windows 7. There is a driver on the Dell site that might allow an option to disable it, but I cannot install it on Windows 7. Getting a credit card exclusively for the sign-up bonus There are quite a few credit cards with exceptional sign-up bonuses (and then fairly average terms). If I signed up for one, fulfilled the spending conditions for the signup bonus, used that bonus, paid off the card and then cancelled it immediately after, would there be a significant impact on my credit history?  I suppose it would divert spending away from my primary credit card (the one I never close), which would reduce slightly the spending history I have on that card. Essentially, the record of my spending on these auxiliary cards would be erased when those cards were canceled. But is there a penalty to my credit score for closing a card beyond the loss of history that was on the closed card? Partition 256 GB SSD for dual Boot, Windows 10 + Ubuntu 19.04 I plan on installing Ubuntu 19.04 and give it 100 GB of my 256 GB SSD space and leave the rest for Windows as I would primarily be using Ubuntu.     A. Now, as I plan to install a lot of applications in Ubuntu, should I give more space to the / partition than the home partition? (Or maybe even drop the /home altogether?).    B. I have another 128 GB SD card for files like photos, audio and video files. Please suggest me the optimal partitioning for the use case.    C. Also, I have 8 GB of RAM so what should be the optimal swap partition size?    D. How would the distribution be if I choose "install Ubuntu alongside Windows" option? It seems like to deleted too much files by rm -r and now I have the error of "the system is running a low-graphic mode" in Ubuntu and I have to work in Windows because of that.  However I can load it in recovery mode. I need to copy the files from Downloads folder to a flash drive. Downloads folder has them as I can see by ls command.   When I plug in a flash drive, there will be some messages saying that everything is ok (as I understood) and it's plugged. But when I go to /media/my_name and do ls then I don't see anything. I don't see anything in /run/media/my_name either(I'm not sure if should though).  I can't connect to the Internet for some reason. Ubuntu was installed by wubi.exe file.  How do I save the content of my Downloads folder to a flash drive? Hotspot and Internet access together — why not? If I try to set up a hotspot in GNOME, I get the following message:  If you have a connection to the Internet other than wireless, you can use it to share your internet connection with others. Switching on the wireless hotspot will disconnect you from &lt;network name&gt;. It is not possible to access the internet through your wireless while the hotspot is active.  What are the technical reasons why I can't set up an Hotspot and be connected to the Internet at the same time? How to run scripts every 5 seconds? Good day. I'm not too sure how I should go about asking my question, so if it is in anyway confusing, feel free to edit it.   In my Group Theory course we defined and showed a few properties of the commutator subgroup $[G,G]$ of a group $G$. And then we stated and proved a lemma in lecture that I'm having some difficulty wrapping my head around. I'll state it here for clarity.  Lemma a) The commutator subgroup $[G,G]$ of $G$ is a normal subgroup of $G$. b) The quotient group $G / [G,G]$ is the largest abelian quotient of G in the sense that every homomorphism $\varphi : G \to A$ where $A$ is an an abelian group, induces a unique homomorphism $\bar \varphi : G/[G,G] \to A$ so that $\varphi =\bar \varphi \circ \pi$ where $\pi : G \to G/[G,G]$ is the quotient homomorphism.  Now, it's not the proof of this lemma that I'm having trouble with, it's the italicized text that is messing with me. I completely understand what it is that the italicized text is saying, I'm just not too sure why it is that the property gives us the "largeness" that is claimed. I can see that the above forces $G$ to "pass through" $G/[G,G]$ before it "reaches" $A$ (I apologize for the casual terminology), so I can sort of see why $G/[G,G]$ should be the largest quotient, in a non-rigorous sort of way.  Overall I'm very confused. Perhaps I'm missing something very simple. Any help or nudges in the right direction would be much appreciated.   As a side note I did try a search on Google and here on Stack Exchange and couldn't find anything that answered my question. So if I missed something obvious, then my apologies. Thank you in advance. For a book cover, I want to write the title vertically (like in Japanese, but using English text):           T T        I H        T I  I  M  L S  S  Y  E   How do I do this without jumping through a host of \vbox and \hboxes? I read with interest about Einstein's Theory of Relativity and his proposition about the speed of light being the universal speed limit.    So, if I were to travel in a spacecraft at (practically) the speed of light, would I freeze and stop moving?  Would the universe around me freeze and stop moving?  Who would the time stop for?