Hi,
What is the difference between static and global static variable?
I am not able to find any differences. Well they both seem the same to me.
Do they differ in storage or the place where they are stored?
Please explain me with an example.:(Code:#include <stdio.h>
unsigned int a ;
static unsigned int b ;
int main(void )
{
printf("\nGlobal : %u and %u\n",a,&a) ;
printf("\nStatic Global : %u and %u\n",b,&b) ;
return 0 ;
}