Connecting Tech Pros Worldwide Forums | Help | Site Map

static

robin thobiyas
Guest
 
Posts: n/a
#1: Jan 18 '08
Can we access the static variable declared in global through scope
resolution operator.. in to the functions.

=?iso-8859-1?q?Tom=E1s_=D3_h=C9ilidhe?=
Guest
 
Posts: n/a
#2: Jan 18 '08

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