What is difference between arrays and pointers?
No Answer is Posted For this Question
Be the First to Post Answer
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.
Can we include one C program into another C program if yes how?
how to sort two array of characters and make a new array of characters.
Write a program to print fibonacci series without using recursion?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is the difference between constant pointer and pointer to a constant. Give examples.
What is structure in c definition?
Write a program to show the change in position of a cursor using c
What is a pointer in c plus plus?
What is the meaning of c in c language?
What is C language Terminator?