How do we make a global variable accessible across files?
Explain the extern keyword?


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

Post New Answer

More C Interview Questions

How will you allocate memory to double a pointer?

1 Answers  


main() { int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ; int i, j , k=99 ; for(i=0;i<3;i++) for(j=0;j<4;j++) if(a[i][j] < k) k = a[i][j]; printf("%d", k); }

4 Answers   Vector, Wipro, Zoho,


main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }

2 Answers   CSC,


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

0 Answers  


I heard that you have to include stdio.h before calling printf. Why?

0 Answers  






What does. int *x[](); means ?

0 Answers   Wilco,


How can I convert integers to binary or hexadecimal?

2 Answers  


int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

6 Answers   Hughes,


Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S)

2 Answers  


Explain the advantages and disadvantages of macros.

0 Answers   TCS,


What is character set?

0 Answers  


Who had beaten up hooligan "CHAKULI" in his early college days?

1 Answers  


Categories