Answer the following: 1) Why is “C” called a middle level language? 2) What is data type? 3) List the various conditional statements. 4) What do you understand by %d? 5) Name any three header files other than stdio.h and conio.h.
[5 marks]Give the basic Cstructure of a Cprogram. Support your answer with a small sample code.
[5 marks]Write a brief account on the various operators used in C. Also explain all the relational operators in details.
[5 marks]What are the basic data types in C. Support your answer examples.
[5 marks]What do you mean by conditional statements? Explain any one of them with proper example.
[5 marks]Discuss the need of arrays? Write a Cprogram to print the third element in the array.
[5 marks]What are iterative constructs? Differentiate between while and do-while iterative construct.
[5 marks]Write a Ccode to find the sum of all the numbers in a given array. Also find the average of the numbers entered.
[5 marks]Write a brief account on Strings. What is need of terminating the string with a null character?
[5 marks]Write a brief account on storage classes in C.
[5 marks]Discuss the need of functions? Write a function in Cthat accepts two numbers and returns the sum of the two numbers entered.
[5 marks]Discuss the need of pointers. Explain dynamic memory allocation functions malloc and calloc with proper syntax and example.
[5 marks]Explain recursion. Write a Cprogram to find factorial of a number using recursion.
[5 marks]Create a structure “Student” that has id as integer, marks as integer and name as string. Write a Ccode to accept and print the details of three students through the “Student” structure.
[5 marks]Discuss the various modes for the fopen() function.
[5 marks]What is the need of creating structures? Give the difference between arrays and structures.
[5 marks]Devise a Cprogram that checks whether a given number is odd or even. If the number is odd, write it to OddNo.txt file and if the number is even, write it to EvenNo.txt file.
[5 marks]