the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?


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

Post New Answer

More C Interview Questions

With the help of using classes, write a program to add two numbers.

0 Answers   TCS,


how to sort two array of characters and make a new array of characters.

1 Answers   Accenture,


Explain what are compound statements?

0 Answers  


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what would be the output?

1 Answers   Wipro,


What is volatile in c language?

2 Answers   HCL, TCS,






What is the purpose of realloc()?

0 Answers  


What is cohesion in c?

0 Answers  


Write a program to print all the prime numbers with in the given range

8 Answers   ABC, College School Exams Tests, TCS,


What are different types of 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,


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

0 Answers  


Write a program to find the biggest number of three numbers in c?

0 Answers  


Categories