Connecting Tech Pros Worldwide Help | Site Map

static

  #1  
Old January 18th, 2008, 08:45 AM
robin thobiyas
Guest
 
Posts: n/a
Can we access the static variable declared in global through scope
resolution operator.. in to the functions.
  #2  
Old January 18th, 2008, 10:35 AM
=?iso-8859-1?q?Tom=E1s_=D3_h=C9ilidhe?=
Guest
 
Posts: n/a

re: static


robin thobiyas:
Quote:
Can we access the static variable declared in global through scope
resolution operator.. in to the functions.
>

int i;

void Func(void)
{
int i;

i = 7; /* local */

::i = 7; /* global */
}

--
Tomás Ó hÉilidhe
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
"static" objects and functions Jess answers 14 June 6th, 2007 02:15 PM
Does C# have static local variables like C++? Zytan answers 55 March 3rd, 2007 09:55 AM
Static Methods Jay answers 3 November 16th, 2005 07:19 AM
Friend vs. Static Samee Zahur answers 15 July 23rd, 2005 04:27 AM
static data-member undefined external Scott J. McCaughrin answers 8 July 22nd, 2005 11:04 PM