Basic Data types in C
[7 marks]State two differences between 1) structure Vs union 2) compiler Vs interpreter.
[7 marks]What is loop? Explain while loop with example.
[7 marks]What is control structure? Explain switch-case with example.
[7 marks]What is nested if? Explain with suitable example.
[7 marks]What is function prototype? Write UDF (return by value) that implements given number is prime or not.
[7 marks]Define term recursion. Using recursion find factorial’s of N number.
[7 marks]Define array. Write code that finds average of 10 elements of an array.
[7 marks]What is the last character of string? Explain with suitable example: strcat function.
[7 marks]What is pointer? Write code that swaps two integer values using pointer.
[7 marks]Design a structure student_record that contains name, branch and total mark obtained. Develop a program to read data for students in a class and print them.
[10 marks]Advantages and Disadvantages of pointer
[7 marks]Define structure data type called date_struct containing three member’s integer year, integer month and integer day. Develop a program that would assign values to the individual number and display the date in the following format: yyyy-mm-dd
[7 marks]Write a program to accept the contents from the user and store it in the file one line at a time and print the contents of the file.
[7 marks]Write syntax and significance of fseek() and ftell() functions
[7 marks]Write syntax and significance of fopen() function..
[7 marks]Write a code that read a file 'abc.txt' in reverse order.
[7 marks]