I was experimenting some stuff with pointers in my school today when i found that the following code would output  1 2 3 4 5 6 7 8 9   Here is the code:  int foo[10]; int i; for (i = 0; i &lt; 10; i++) foo[i] = i;  for (i= 0; i &lt; 10; i++) printf("%d\n", i[foo]);   I have been looking for an explanation on the internet but I can't seem to find one.
As Joel points out in , in  (aka: K &amp; R), there is mention of this property of arrays in C: a[5] == 5[a]  Joel says that it's because of pointer arithmetic but I still don't understand. Why does a[5] == 5[a]?
How do I reset the Windows XP Administrator password? I have forgotten the Administrator password of my Windows XP installation and locked out. Is there a way to reset it? I do have physical access to the PC. Disabling SSLv3 but still supporting SSLv2Hello in Apache Many SSL clients, notably JDK 6, use the SSLv2Hello protocol to handshake with the server.  Using this protocol does not mean you are using SSL 2.0 or 3.0 for that matter; it is merely a handshake to determine which protocol to use.  [  However, in Apache, if you disable SSLv3 support, this apparently removes support for the SSLv2Hello protocol.  Apache Tomcat has explicit support for SSLv2Hello; that is, you can enable that, but not enable SSLv3.    Is there any way to do this in Apache?    [Update]   This is my protocol config:    SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2 -SSLv3 i Need a batch file to create a folder "test" in every removable device than i plug in my computer (pendrives and etc)  i am trying something like this  set "extDrive=" for /f %%D in ('wmic volume get driveLetter^ where drivertype=2 ) do set extDrive=%%D mkdir "%extDrive%\test"   Someone can tell me why this is not working ?? Seeking neighborhood boundaries globally? Besides Zillow's creative-commons licensed  shapefiles, what sources of neighborhood boundaries are there? Not just in the US, but all over the world.  Free/open source is ideal, but paid sources could be interesting too. Change the height of a function being plotted Access POST values in Symfony2 request object Harry Potter: Why 7? While rereading the entire Harry Potter series I noticed that the number 7 occurs quite often, for instance:    Seven books Seven Horcruxes planned by Tom Riddle Seven Weasley kids Seven years at Hogwarts Seven Harry Potters Seven people in a Quidditch team   Did J.K. Rowling ever mention why 7 was so important in Harry Potter? Setting background-image using jQuery CSS property Why are the Degrees of Freedom for multiple regression n - k - 1? For linear regression, why is it n - 2? I'm reading a textbook and I see this question:    So there are 200 women, and the DF is 196, implying that the equation for DF is $n - k - 1$. There are 3 variables: bp, age, and type so $k == 3$. What's the intuition behind this?  Also, why is the degrees of freedom for linear regression n - 2? What would be the right position of "substantially" in the following:     1). Before verb: These optimal values substantially contribute to the success of the methodology.      2). After verb: These optimal values contribute substantially to the success of the methodology.   Here is my issue:  Fact1: When I use Google Ngram, I get , 0 occurrence of option 1.  Fact2: I found an excellent Grammar book that discusses Adverbs, their types and prefered positions. The author defines some rules that I'll summarize as follows:   Connecting adverbs, eg: however, then,..., Position: Beginning of clause. Indefinite frequency, eg: always, usually,..., Position: Mid position (after auxilary verb, before other verbs) sometimes beginning of clause. Focusing adverbs, eg: mainly, only,..., Position: Mid position. Adverb of certainty, eg: clearly, obviously, Position: Mid position. Adverb of completeness, eg: almost, nearly,..., Position: Mid position. Adverb of manner, eg: fast, slowly, nicely,..., Position: End clause, mid and beginning. Adverb of place, eg: upstairs, around, Position: End clause, sometimes beginning. Adverb of time, eg: daily, weekly, ... Position: Mostly end clause, sometimes beginning and mid position.   I think that "substantially" is an adverb of completeness. Therefore, the right position is before the verb "contribute" (option 1). However, Google Ngam indicates that option 1 is not widely used.  What do you think? Any suggestions? Grub rescue - error: unknown filesystem How to factor polynomials in $\mathbb{Z}_n$? How to factor a certain polynomial over $Zn$.  for example factor the following polynomial into irreducible polynomials in $Z5$:  $X^3+X^2+X-1$  or factor the following polynomial into irreducible polynomials in $Z2$:  $X^4+X+1$   is there a certain method (algorithm) I can follow?  Please help I'm stuck and i really need the help!  thank you in advance!! Windows 7 System process reading/writing like crazy I have a problem that my windows 7 computer sometimes starts accessing the disk like crazy for maybe 10 minutes at a time. The process in question is the "system" process. I have disabled superfetch and hibernation on my computer, if that makes any difference. I disabled those to see if they were the cause of the problems, but no change. I have 6 GB of RAM and only the web browser was started when I took the screenshot, so I don't think it was thrashing due to page faults.  Any ideas on how to find the cause of this? "There are several reasons proposed for the collapse of the bridge." There are several reasons proposed for the collapse of the bridge.   Is this present simple tense or the present perfect tense? I thought it might be the latter since there is a retrospective aspect to the sentence. However, I am quite unsure. I have a little problem with the placement of my picture. I want to insert it at the end of the introduction chapter but its place is not where I want.   I think the problem become from the:  \begin{figure} ... \end{figure}   Because when I insert the picture without using \begin{figure}... the picture is at the end of the chapter as I want.   Look the picture below. How many attacks can a fighter with two-weapon fighting make at 5th level? I have a 5th level fighter with the Two-Weapon Fighting fighting style.   What is the number of attacks I can make?   I say 4 attacks, but others say 3 because they say the rule on page 72 states that I get (only) 1 extra attack. Mail on Big Sur does not reliably find dollar values How to determine the size of a package while using apt prior to downloading? When using apt-get install &lt;package_name&gt;, and there are dependencies that need to be downloaded, the terminal outputs names of additional packages and total size, and asks for confirmation before downloading.   But, when dependencies are satisfied and nothing but the named package needs to be downloaded there is no size output and no confirmation.  When using Synaptic, I can see the total size that new packages that will use after installation but no way to see the size that needs to be downloaded, except to go from package to package and use properties to see the compressed size.  I would like to know if there is a way to see the size of a package(s) in terminal and Synaptic prior to downloading and installing it/them? I'm seeking for a proof of the following:     Let $A$ be an invertible matrix. Then the determinant of $A^{-1}$ equals:   $$\left|A^{-1}\right|=|A|^{-1} $$   I don't know where to begin the proof. Any suggestions? Did you know that :  Map&lt;Object,Object&gt; m1 = new HashMap&lt;Object, Object&gt;(); Map&lt;Object,Object&gt; m2 = new HashMap&lt;Object, Object&gt;(); System.out.println("m1.equals(m2) = "+m1.equals(m2)); System.out.println("m1.keySet().equals(m2.keySet()) = "             +m1.keySet().equals(m2.keySet())); System.out.println("m1.entrySet().equals(m2.entrySet()) = "             +m1.entrySet().equals(m2.entrySet())); System.out.println("m1.values().equals(m2.values()) = "             +m1.values().equals(m2.values()));   would output :  m1.equals(m2) = true m1.keySet().equals(m2.keySet()) = true m1.entrySet().equals(m2.entrySet()) = true m1.values().equals(m2.values()) = false   This is caused by the fact that AbstractCollection (which HashMap$Values inherits from) does not overrides #equals().  Do you have an idea why this is so ?