Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
No Answer is Posted For this Question
Be the First to Post Answer
who invented c
What is #pragma statements?
How do you write a program which produces its own source code as output?
ATM machine and railway reservation class/object diagram
dynamically allocate memory for linear array of n integers,store some elements in it and find some of them
Explain how can I convert a string to a number?
What is the scope of local variable in c?
What is an object?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
In C program, at end of the program we will give as "return 0" and "return 1", what they indicate? Is it mandatory to specify them?
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 c preprocessor mean?