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

how 2 compile & execute c program with out using editor?

2 Answers   HP,


code for concatination of 2 strings with out using library functions?

3 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,


how to compare two strings without using strcmp() function??

1 Answers  


wat s the meaning of (int *)p +4;

2 Answers  






WHAT IS LOW LEVEL LANGUAGE?

2 Answers  


Write a program to print distinct words in an input along with their count in input in decreasing order of their count

0 Answers  


Write program to remove duplicate in an array?

0 Answers  


without using arithmatic operator solve which number is greater??????????

1 Answers   Accenture,


How do you initialize pointer variables?

0 Answers  


What is Bitwise Operator and how it works?

1 Answers  


what is the diff b/w static and non static variables in C. Give some examples plz.

3 Answers   Wipro,


Categories