Can I know where the volatile variable is getting stored in the memory?     If i declare globally means where does it get stored in the memory?  volatile int a =10; int main() {     printf("Global A value=%d",a);     return 0; }  If i declare locally inside the function means where does it get stored in the memory?  int main() {     volatile int a =10;     printf("Local A value=%d",a);     return 0; }    Does it get stored in Stack / RAM / Data segment ?  Please clarify my doubts.
What does the volatile keyword do? In C++ what problem does it solve?  In my case, I have never knowingly needed it.
I have my A* pathfinding algorithm right now working such that given a graph it can find the route from one starting node to one goal node.   This works well for many problems, but sometimes I find that multiple goal nodes are valid.  For example, in a game, an NPC might have to go to a switch to shut a door. If there are multiple switches that shut the door in question, it doesn't matter which switch it goes to - it just needs to go to one of them.  How can I augment my pathfinding algorithm to find the path to the best goal (the shortest path)? As in, the algorithm searches for multiple goals and when it finds just one, it returns the path to that one.  One solution would be to run the algorithm as many times as there are valid goals, but you can guess why that might be inefficient. Shell command for outputting absolute path of binary Is there a shell command for outputing absolute path for specified program? I'd like to know where executable binary file is. How do I get on a Minecraft PE server when it says 'invalid name'? I am having trouble getting onto a server in Minecraft PE on iOS. When I tap on the person's server it just says invalid name:    I have tried turning off and restarting the iPad, going to home screen and logging back into the server but I have had no luck and no change. Is there a reason why this is so? Going into a directory linked by a link Assigning point IDs to respective start and end attributes of polyline? I'm flying to Tokyo. The flight was sold through Finnair. The first leg is operated by American Airlines. The second and final legs are operated by Finnair.  When I checked in online, it said that some airports on my journey (didn't say which one) don't allow mobile boarding passes?? Meaning I will need a physical copy.  Unfortunately I don't have easy access to a printer. Will I still be able to print all my boarding passes at the airport even though I already checked in online? Finding probability of other child also being a boy A man visits a couple who have two children.One of them, a boy, comes in to the room. Find the probability p that other is also a boy  a) 1/3 b) 2/3 c) 1/2 d) 3/4  Correct Ans: a) 1/3  However I am getting answer as 1/2.My solution is as follows.  The couple has two children, hence the sample space is as follows.  B- Boy G - Girl  BB BG GG ( BG and GB mean the same thing as Girl,Boy), but it is already known that one is boy.So the sample space reduces to  BB BG  So now p is 1/2  Is there some mistake is my approach ? Windows 7 low and critical battery levels cannot be set lower than 10% Are comments safely hidden once the document is compiled? C++11: defining function on std::array Understanding the proof for $\gcd (F_n, F_{n+k}) = 1$ where $F_n$ is a Fermat number I'm trying to understand the following proof of why      No two Fermat numbers have a common divisor greater than $1$.   Hardy and Wright show the following proofs:   If $x = 2^{2^n}$, we have  $$\frac{F_{n+k} - 2}{F_n}(\circ) = \frac{2^{2^{n+k}}-1}{2^{2^n}+1} = \frac{x^{2^k}-1}{x+1} = x^{2^k-1} - x^{2^k-2} + \ldots -1$$  The main issue I'm having is the $\circ$ part. I don't understand how they get that. The rest of the proof makes sense but the first part is really confusing me. Can someone please explain where they get that fraction?  Thanks a bunch! OS is openSUSE 12.1, PostgreSQL - 9.1, PostGIS - 2.0. Postgre/PostGIS are installed from Application:Geo repository.  After recent updates when I try to connect to my database I get the following error:      ERROR:  could not load library "/usr/lib/postgresql91/lib64/postgis-2.0.so":  /usr/lib/postgresql91/lib64/postgis-2.0.so: undefined symbol: pj_get_spheroid_defn   I searched the web for this error (, ) and seems that it may have something to do with ld.so.config (or ldconfig command). But I can't figure out what I have to do in my case. Looking for Anime with a prince faking being mentally handicapped hiding a giant mech suit wreaking havoc This is all I can remember.  There are four worlds whose people and technology were all swapped so humans ended up with high tech mech suits that they used to kill each other. There was a supposedly handicapped prince who faked being mentally handicapped and had a giant mech suit hidden underground that he eventually used to wreak havoc on earth.  The protagonist also had a suit and he saved the day. He was in love with a girl who was from another world and when he saved the day, all the people and technology from the different worlds were sent back to their original one causing the girl to leave him. She had colored hair and the final scene was her waking up somewhere with some children commenting on her hair.  There may or may not have been a reference to the protagonists scars in the shape of the constellation of orion on his body.  Any ideas? I've searched the internet for two years trying to find it. Which attacks are possible against raw/textbook RSA? How to get product recommendations Maximum and Minimum values for ints Pass extra parameters to WebSQL callback function? Divisibility tests and remainder mod $9,11,99,101,999,1001\,$ (casting out nines and elevens) Now I have proved the following two problems:      (1) Prove that a number and the sum of its digits have the same remainder upon division by 9.    (2) Given an integer, consider the difference between the sum of the digits in odd positions (counting from the right) and those in even positions. Show that the difference has the same remainder as the number itself when divided by 11.    Then, I need help on the following problem:      Partition the digits of a number into groups of two and three, respectively, starting from the right. Treat these as two- and three-digit numbers, respectively, and proceed similarly as in the two problems above. What divisibility rules arise?    In fact, I did not quite get what this problem asks for and not clear about this process. Could anyone give me some hints on this, please?  Thanks in advance. Desktop link to Eclipse Durrett Example 1.9 - Pairwise independence does not imply mutual independence?