I didn't count the ducks that I saw in line,
but I do remember that one duck was in front of two ducks,
another duck behind two ducks. How many ducks did I see?
Answers were Sorted based on User's Feedback
write a program to print %d ?
Describe wild pointers in c?
write a program for egyptian fractions in c?
Explain pointer. What are function pointers in C?
what is the advantage of function pointer
16 Answers CMC, CS, Freshdesk, L&T, LG Soft, Matrix, TCS,
What is infinite loop?
Differentiate between #include<...> and #include '...'
main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What is meant by type casting?
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.
What is #define used for in c?