Explain what are global variables and explain how do you declare them?


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

Post New Answer

More C Interview Questions

write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }

1 Answers  


Average of a couple 10 years ago was 25. The average remains same after having a child and twins after 3 years. What is the present age of the first child

10 Answers   IBM, Infosys,


what is the diffrenet bettwen HTTP and internet protocol

0 Answers  


What is logical error?

0 Answers  


What is pass by reference in c?

0 Answers  


Please list all the unary and binary operators in C.

3 Answers  


how to create c progarm without void main()?

1 Answers   NIIT,


When was c language developed?

0 Answers  


Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }

3 Answers   Qualcomm,


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

0 Answers   Amdocs, Apps Associates,


Differentiate between static and dynamic modeling.

0 Answers   Wipro,


Define C in your own Language.

0 Answers   Motorola,


Categories