If the static variable is declared as global,
will it be same as extern?
Answer / venkat
static :if i declare the static varible as global that
variable i can acces only with in the file (i.e i can't
access that variable from other file )
extern :if the varible i declared as extern than that extern
variable i can acces from other file also
| Is This Answer Correct ? | 29 Yes | 4 No |
what does ‘segmentation violation’ mean?
There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.
How can I automatically locate a programs configuration files in the same directory as the executable?
What is a const pointer, and how does it differ from a pointer to a const?
How many loops are there in c?
f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?
What is the scope of an external variable in c?
How can you read a directory in a C program?
What is c language in simple words?
main() {char a[10]={1,2,3,4,5,6};int x; for(x=0;x<4;x++){ b[x]=x+'a';} printf("%s",b);}
1. main() { printf("%d",printf("HelloSoft")); } Output?
how to connect oracle in C/C++.