0% found this document useful (0 votes)
4 views2 pages

CP EXTERNAL LAB Q

dshgtkyol;igf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

CP EXTERNAL LAB Q

dshgtkyol;igf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

(a)Evaluate the following expressions.

1 a. A+B*C+(D*E) + F*G ;b. A/B*C-B+A*D/3; c. A+++B---A ;


d. J= (i++) + (++i)
(b) Copy the contents of one file to another file.

(a)Distance travelled by an object


2 (b)Write a C program to write and read text into a binary file
using fread() and fwrite()

3
(a)Write a C program to simulate a calculator using switch case.
(b)Write a C program to write and read text into a file.

(a)Find the factorial of given number using any loop.


4 (b)Write a C program to find no of lowercase, uppercase, digits
and other characters using pointers.

5
(a) Find the min and max of a 1-D integer array.
(b)Demonstrate Dangling pointer problem using a C program.

6
(a) Multiplication two matrices
(b) Write a recursive function to find the sum of series.
7
(a) Concatenate two strings without built-in functions
(b) Write a recursive function to generate Fibonacci series.

(a) Write a C program to find the sum of a 1D array using

8
malloc()
(b) Write a C function to demonstrate numerical integration of
differential equations using Euler’s method

(a) Write a C program to find the total, average of n students


9 using structures
(b) Write a C function to transpose of a matrix.

(a) Write a C program to shift/rotate using bitfields.


10 (b) Write a C program to copy one structure variable to another
structure of the same type.

You might also like