Why static is used in c?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

1 Answers   IBM,


What is a structure in c language. how to initialise a structure in c?

0 Answers  


In C, What is the #line used for?

2 Answers  


How to use c/c++ code in JAVA

10 Answers   CDAC, IBM, Satyam, Scope International,


How can we open a file in Binary mode and Text mode?what is the difference?

1 Answers   PanTerra,






What are volatile variables?

1 Answers   Mind Tree,


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

0 Answers  


Can we change the value of #define in c?

0 Answers  


any "C" function by default returns an a) int value b) float value c) char value d) a & b

0 Answers  


What is ## preprocessor operator in c?

0 Answers  


What is character constants?

0 Answers  


what are the languages used in c#?

3 Answers   Infosys,


Categories