Thread: Volatile Variables

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    2

    Volatile Variables

    1. what does the compiler do when we declare the volatile variable?

    2. where did the volatile variable is stored (Memory location)?

    3. If i declare 400 Volatile variable then how will the compiler behave?

    4. Is compiler active while executing the program(code)?


    Please give answers for the above queries. thanks in advance guys....

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Did google not provide any answers for your assignment?
    Mainframe assembler programmer by trade. C coder when I can.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    You need to do your own homework.

    The specifics of how a compiler does anything depend on the compiler. Microsoft compilers do things differently from gnu compilers, for example.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  4. #4
    Registered User
    Join Date
    Nov 2010
    Posts
    2
    I tried to find it in google but i cannot find the proper answer for the same. can you give me any link that will help me for get the answers...

    even i am trying to find it on google .. if you get it then please give the idea for the same
    Last edited by Gauravmore; 01-10-2011 at 11:55 PM.

  5. #5
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Mainframe assembler programmer by trade. C coder when I can.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. basic question about global variables
    By radeberger in forum C++ Programming
    Replies: 0
    Last Post: 04-06-2009, 12:54 AM
  2. Best way to avoid using global variables
    By Canadian0469 in forum C++ Programming
    Replies: 7
    Last Post: 12-18-2008, 12:02 PM
  3. Question about Static variables and functions.
    By RealityFusion in forum C++ Programming
    Replies: 2
    Last Post: 10-14-2005, 02:31 PM
  4. Remotely Creating Variables
    By Rajin in forum C++ Programming
    Replies: 1
    Last Post: 04-26-2005, 11:20 PM
  5. Declaring an variable number of variables
    By Decrypt in forum C++ Programming
    Replies: 8
    Last Post: 02-27-2005, 04:46 PM