Can static variables be declared in a header file?


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

Post New Answer

More C Interview Questions

who is the founder of c

19 Answers   College School Exams Tests, HP,


What is the 'named constructor idiom'?

0 Answers  


Is it possible to run using programming C for Java Application?

2 Answers   NIC,


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 does emoji p mean?

0 Answers  






List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

0 Answers   Ignou,


Write a C program to find the smallest of three integers, without using any of the comparision operators.

7 Answers   TCS,


Should a function contain a return statement if it does not return a value?

0 Answers  


Write a program to show the change in position of a cursor using c

0 Answers  


Write a program in C to print the alphabets in order as on a mobile phone.i.e:When 2 is pressed once 'a' prints and if it is pressed two times 'b' prints and so on.we have to print all the alphabets as on mobile phone like this.

1 Answers   Wipro,


what does exit() do?

3 Answers   Cadence,


Does c have an equivalent to pascals with statement?

0 Answers  


Categories