can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?
2 6200You 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 5590
What is the main difference between calloc () and malloc ()?
praagnovation
Why ca not I do something like this?
In a byte, what is the maximum decimal number that you can accommodate?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
What is enumerated data type in c?
What is ambagious result in C? explain with an example.
How can you increase the size of a statically allocated array?
How can you find the exact size of a data type in c?
What are 'near' and 'far' pointers?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is a memory leak? How to avoid it?
Can a variable be both static and volatile in c?
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
What is 1f in c?