What is the scope of global variable in c?


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

Post New Answer

More C Interview Questions

What is a memory leak in structures? How can we rectify that?

2 Answers  


24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?

0 Answers  


void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..

1 Answers  


Give me basis knowledge of c , c++...

5 Answers  


what type of language is C?

13 Answers   Microsoft,






how to find turn around time in operating system?

3 Answers  


let's take a code struct FAQ { int a; char b; float c; double d; int a[10]; }*temp; now explain me how the memory will be allocated for the structure FAQ and what address will be in the structure pointer (temp)....................

8 Answers  


What is an example of structure?

0 Answers  


What are the ways to a null pointer can use in c programming language?

0 Answers  


What is the difference between pure virtual function and virtual function?

0 Answers  


what is d pitfalls of registers variables

3 Answers   TCS,


a character variable can at a time store a) 1 character b) 8 characters c) 254 characters d) none of the above

3 Answers  


Categories