What is difference between array and structure in c?
No Answer is Posted For this Question
Be the First to Post Answer
What is malloc and calloc?
What is bin sh c?
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 the difference between <stdio.h> and "stdio.h"
14 Answers Invendis, Kanbay, Mastek, MathWorks,
main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What will be your course of action for a push operation?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What are data types in c language?
In which area global, external variables are stored?
write a program to copy a string without using a string?
Is the following code legal? struct a { int x; struct a b; }