Volatile Variables

This is a discussion on Volatile Variables within the C Programming forums, part of the General Programming Boards category; 1. what does the compiler do when we declare the volatile variable? 2. where did the volatile variable is stored ...

  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
    Katy, Texas
    Posts
    2,309
    Did google not provide any answers for your assignment?
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    5,843
    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%.

  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 10:55 PM.

  5. #5
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

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, 11:02 AM
  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, 03:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21