what does the statement :
static char a[100] = "a";
store in the executable image. ??
I need to make a command line parameter exist AFTER the program finishes execution.. so that when i run the code next time ( without recompiling ).. i can work with the paramter..
for example:
$./prog pipe
>hello
$./prog tyre
>pipe
$./prog foo
>pipe
Also, i dont want to store it in another file.. maybe i could write a copy of prog in memory..
I hope u got what i wanna do ..
basically how to make
int main()
{ static char a[100[]="hello";
printf("%s",a);
}
to print pipe instead of hello... i think thats what static does.. but does it remember values even when prog execution ends.. i doubt that