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
void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?
Define C in your own Language.
What is the difference function call by value & function call by reference?
c program to add and delete an element from circular queue using array
Explain modulus operator.
What is unsigned int in c?
How can I convert a number to a string?
void main() { int i=5; printf("%d",i+++++i); }
what is meant by the "equivalence of pointers and arrays" in C?
What is encapsulation?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Why calloc is better than malloc?