What does sizeof function do?


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

Post New Answer

More C Interview Questions

What is meant by errors and debugging?

0 Answers  


34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?

0 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 c programming structure?

0 Answers  


why we shiuld use main keyword in C

5 Answers  






What does the format %10.2 mean when included in a printf statement?

0 Answers  


Difference between constant pointer and pointer to a constant.

0 Answers   Huawei,


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

0 Answers  


If errno contains a nonzero number, is there an error?

0 Answers  


What are actual arguments?

0 Answers  


Stimulate calculators to perform addition,subtraction,multiplication and division on two numbers using if/else statement?

1 Answers   IBM,


What is a null string in c?

0 Answers  


Categories