What is the difference between static and global variables?
Answer / kush joshi
static variable only can access within a function where
these declared, but the global variables access any where in
the program.
Is This Answer Correct ? | 4 Yes | 1 No |
main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }
2 Answers Vector, Vector India,
Why is c called c not d or e?
write a c program to add two integer numbers without using arithmetic operator +
Differentiate between static and dynamic modeling.
main() { int i=5; printf("%d",++i + i); } output is 10 ------------------------ main() { int i=5; printf("%d",i++ + i); }output is 12 why it is so? give appropiate reason....
what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d %d ",SQR(i),i * SQR(i)); } a)9 27 b)35 60 c)20 60 d)15 175
main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }
What is difference between union and structure in c?
If I have a char * variable pointing to the name of a function ..
Write a C program to fill a rectangle using window scrolling
Are the variables argc and argv are local to main?
how to use virual function in real time example