28 February, 2011

Variable name conflicts

Is it possible to declare global and static variable with same name? if yes, static var will be stored in data segments, wont it get conflict?

eg:
#include

static int a = 0;

void func()
{
printf("a = %d\n", a);
}

int main(void)
{
static int a = 10;
printf("a = %d\n", a);
func();
return 0;
}

25 February, 2011

Zombie process

Does any one remember about zombie processes...
When a processes is stopped using Ctrl +Z is it called a zombie process? 
Read about it somewhere not sure if it is right.
Also check out these commands 
bg - Background
fg - Foreground