Hi Can someone tel me about external static?Do we use it if we want that data to be private to our file.Can't we use it in other file.I have created a file
1.h
static int k=9;
and
2.c
#include "1.h"
#include<stdio. h>
int main()
{
printf("Hello %d ",k);
getch();
}
Th variable is accesible and can be modified.
Please tel me correct use of external static.
1.h
static int k=9;
and
2.c
#include "1.h"
#include<stdio. h>
int main()
{
printf("Hello %d ",k);
getch();
}
Th variable is accesible and can be modified.
Please tel me correct use of external static.
Comment