Memory addresses specify how many bytes of data they point to in memory, so it seems that the size of any variable is determined by looking at the memory address and seeing how much the variable occupies in memory. So how is the size of an array determined??? - because an array is a pointer to only the first item in the array by default:  int main() {     int a[] = {1,2,3,4,5};     // both show same memory address     printf("%p\n", a);     printf("%p\n", &amp;a[0]);     // somehow the entire size of a is calculated     printf("%lu\n", sizeof(a)); // 20 (all elements)     return 0; }
First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?
Where are the review queue counters? The review queue counters have disappeared:        Where are they?  When I did screenshot the Close Votes queue was not empty, if someone think so. Do individual rays of light lose energy via the inverse square law? Performing reverse clip in ArcMap? Is there a way to perform a 'reverse' of the clip function in ArcMap?  I am not exactly sure how to explain this so here is a diagram: Prevent malicious bots from posting spam I remember  due to misuse and I wonder if bots have a part of it. If the bot is POSTing something to my site what are ways I can combat it? I was thinking of setting some cookies and having the cookies changed via JavaScript + timestamp and sign (so yesterday's cookies can't be used today and next week).  I'm sure most people/bots would just use another site instead of enabling JavaScript in their bot.  What else can I do? I'm thinking daily POST limit and a honeypot for generic bots who just randomly post spam. Minecraft LAN "java.net.ConnectException: Connection refused: no further information:" I am trying to play a map on LAN. But every time I try to log on, I get:     java.net.ConnectException: Connection refused: no further information:   This used to work, but for some reason has stopped all of a sudden. I looked it up online, and everything I found said the firewall just wasn't allowing Java through. I followed tutorials to allow Java through the firewall, but even then it won't work. I know for a fact that I'm putting the IP in correctly, and everything seems to be correct, but yet I still get the same error message.  If it helps any, I'm using MC version 1.8.9 (the map requires it), and I don't have any mods. Let $V$ be a vector space over a field $F$ and $T$ a linear operator on $V$. If $T^2$$=$ $0$, what can you say about the relation of the range of $T$ to the null space of $T$? Proving the series $\sum_{n=0}^{\infty}\sin(e\pi n!)$ converges Charts from numbers not dynamically updating in Pages/Keynote I have the 2015 versions of Pages, Numbers, and Keynote on Yosemite.  I created a chart in numbers and then copied it to Pages or Keynote. I then want to be able to change the data in Numbers and see the chart updated in Pages or Keyonte. However, I don't see an option to "refresh".  Is there a way to dynamically link Numbers to Pages or Keynote? Prove that $p \in \mathbb{R}[x]$ can be represented as a sum of squares of polynomials from $\mathbb{R}[x]$ Python: pop from empty list Shortest one-line shell script to print all special characters Novel about interstellar war: Both sides win, both sides think they lost I recall reading this novel in the &rsquo;90s; my recollection is that the author was better-known for bad fantasy than for SF (but the SF of his that I&rsquo;d read was better than his fantasy).  The story opened in media res just before a battle was joined; there is a dialogue between the captain of one of the ships and one of his crew. We never see the actual battle; we instead see the conquest of Earth by the aliens - and the conquest of the alien homeworld by Earth.  It is slowly revealed that the two sides contrived a way to both avoid the destruction of actual war, and solve their respective worlds&rsquo; respective problems of overpopulation, infrastructure decay, et multae ceterae. We also see that the solution was that the conquering aliens were secretly selecting Earthmen to rule their homeworld, while the humans were selecting aliens to rule Earth.  About halfway through, there is suddenly a third world that must be &lsquo;conquered&rsquo; and brought into the network. The plot gets complicated after that. Your favourite application of the Baire Category Theorem Are collective nouns always plural, or are certain ones singular? Execution order of event receivers and workflow on a list How do I depower overpowered magic items without breaking immersion? Intuitive reason why the Fisher Information of Binomial is inversely proportional to $p(1-p)$ It confuses/blows my mind that the Binomial has variance proportional to $p(1-p)$. Equivalently, the Fisher information is proportional to $\frac{1}{p(1-p)}$. What is the reason for this? Why is the Fisher Information minimized at $p=0.5$? That is, why is inference most difficult at $p=0.5$?  Context:  I'm working on a sample size calculator, and the formula for $N$, the sample size needed, is an increasing factor of $p(1-p)$, the result of a variance estimation in the derivation. Is the use of a hyphen between "non" and an adjective strictly necessary? Do I need to put a "-" between "non" and an adjective? As an example in physics we say "a non isolated photon", "non tight photon"... The context is very formal (paper publications and similar). Is there a general rule? Are there some differences between countries? reflecting direct light on glossy surface in Cycles Working in Cycles.  Say I have a "disco ball" with a glossy shader. I'm pointing a spot light to it, and I'm trying to have the reflections of that light illuminate the diffuse material on the walls with the patterns from the ball.    I get this:    but I'd like to get something like:    For the illustration I placed a point light inside the ball an removed faces. But what I'd like to do is move the light around the ball so that the light reflected from it changes like it would do in real life.   Is that possible at this point?  EDIT:  Just for the record here's the image rendered in LuxRender (yet another program to learn...) In what order do multiple readied actions with the same trigger resolve?