Answer the following : i. Explain term constant, symbolic constant and literal. ii. Differentiate between algorithm and pseudo code.
[4 marks]Explain various symbols of flow chart and draw a flowchart to find maximum of three numbers.
[7 marks]Differentiate between following:- i. Constant pointer and pointer to constant ii. int *p[2] and int (*p)[2]
[4 marks]What is an array? Write a program to sort n element using user define function.
[7 marks]Write a program to multiply two matrices using user define function.
[7 marks]What is recursion? Write a recursive function to convert any decimal number to binary number.
[7 marks]Explain various storage class in detail.
[7 marks]Explain malloc, calloc, realloc and free function in detail.
[7 marks]Differentiate between macro and function with suitable example.
[7 marks]Differentiate between enum, structure and union with suitable example.
[7 marks]Write a program to perform following operations on singly linked list i. Add node at end of list ii. Delete node iii. Search node 01
[3 marks]Differentiate between array name and pointer. Write a program sort string array using pointer.
[7 marks]Write short note on command line arguments and its usage and also write a program to make a DOS command “copy con” which shows the contents of given file.
[7 marks]Differentiate between i. ftell() and fseek() functions ii. void pointer and NULL pointer iii. binary file and text file
[3 marks]Explain #ifdef , # undef and #ifndef preprocessor with example
[7 marks]Write down the output of following code snippet
[ marks]void main() { int a[]={1,2,3,4,5}; int *x=a,*y=a[4]; printf(“%d”,y-x); } (ii) #define swap(a,b) t=a;a=b;b=t; void main() { static int a=1,b=2,t; if(t) swap(a,b); printf(“%d , %d , %d“,a,t,b); }
[4 marks]Write short note on following: i. bitwise operator ii. #pragma iii. bitfield
[2 marks]