A global variable when referred to in another file is declared as this

a) local variable

b) external variable

c) constant

d) pointers


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

Post New Answer

More C Interview Questions

Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?

2 Answers   TCS,


How can I open a file so that other programs can update it at the same time?

0 Answers  


How can I find leaf node with smallest level in a binary tree?

1 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  


You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.

2 Answers   Qualcomm,






what is difference between c and c++

4 Answers  


change to postfix a/(b+c*d-e)

8 Answers   Value Labs,


what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }

9 Answers   HCL,


What does the c preprocessor do?

0 Answers  


Write a program to check palindrome number in c programming?

0 Answers  


in malloc and calloc which one is fast and why?

1 Answers  


write a method for an array in which it can display the largest n next largest value.

1 Answers   Value Labs,


Categories