User Profile

Collapse

Profile Sidebar

Collapse
vamskk
vamskk
Last Activity: Jun 25 '09, 03:17 AM
Joined: Jun 24 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vamskk
    replied to Global variable and static global variable
    in C
    In a proj all .c files concerning to that project are compiled together. Is it not as good as they are like include files? So global static variable from other .c file can be accessed by extern command. Is it not so?
    See more | Go to post

    Leave a comment:


  • vamskk
    replied to Global variable and static global variable
    in C
    Static global variable in header

    The link that is given discusses about can static global variables be defined in .h file and the answer is yes. So that should not matter if it is defined in a .c file and would be accesable from another file in the same project using extern.

    May be the information given is not authentic. Thank you JOASH.

    Could you give some authentic links for global static variables...
    See more | Go to post

    Leave a comment:


  • vamskk
    replied to Global variable and static global variable
    in C
    Global static

    Global static variables are accessable from other files. The static is to make the variable retain the last assigned value. But what is given below says global static variables are not accesable from other file.

    ex.
    http://knol.google.com/k/vivek-bhadr...4lj4klzp0d/36#...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...