Q-1: Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college.
8 49454find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
2316Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
2203write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,25,26,27};
5 6645In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
1855
How would you obtain the current time and difference between two times?
How do you convert strings to numbers in C?
Is c easy to learn?
What does & mean in scanf?
What is spaghetti programming?
What is const keyword in c?
What is a pointer variable in c language?
Why do we use header files in c?
what are the advantages of a macro over a function?
Is array name a pointer?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
How can I write functions that take a variable number of arguments?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
Explain what is the benefit of using enum to declare a constant?
Why does everyone say not to use scanf? What should I use instead?