A
aki
Hi i want to use a variable , who value should retain within function
calls.
File 1
..........
static int flag=0
func1()
{
func2();
if (flag)
{
do somthing....
}
}
File 2
...........
extern int flag;
func2()
{
flag=1;
}
Is this fine and work ????
calls.
File 1
..........
static int flag=0
func1()
{
func2();
if (flag)
{
do somthing....
}
}
File 2
...........
extern int flag;
func2()
{
flag=1;
}
Is this fine and work ????