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 is real time system?what is the differance between hard and soft real time systems
How can I invoke another program from within a C program?
How the c program is executed?
main() { int l=6; switch(l) { default:l=l+2; case 4:l=4; case 5:l++; break; } printf("%d",l); }
What is a 'null pointer assignment' error?
write a program to display the numbers in the following 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
what is difference between ANSI structure and C99 Structure?
i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);
What does static variable mean in c?
# define prod(a,b)=a*b main() { int x=2; int y=3; printf("%d",prod(x+2,y-10)); } the output of the program is a.8 b.6 c.7 d.none
let's take a code struct FAQ { int a; char b; float c; double d; int a[10]; }*temp; now explain me how the memory will be allocated for the structure FAQ and what address will be in the structure pointer (temp)....................