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

Wa0000

The document outlines a series of programming tasks and exercises in C, covering various topics such as basic operations, mathematical calculations, data structures, and memory management. It includes specific requirements for implementing functions, using loops and conditionals, and performing operations on arrays and matrices. Additionally, it emphasizes the use of different programming concepts like recursion, pointers, and memory allocation.

Uploaded by

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

Wa0000

The document outlines a series of programming tasks and exercises in C, covering various topics such as basic operations, mathematical calculations, data structures, and memory management. It includes specific requirements for implementing functions, using loops and conditionals, and performing operations on arrays and matrices. Additionally, it emphasizes the use of different programming concepts like recursion, pointers, and memory allocation.

Uploaded by

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

1: i) Basic Linux environment and is editor vi, .

ii) Write c program to implement realloc.

2: i) Sum and average of 3 numbers


ii) Conversion of Fahrenheit to Celsius and vice versa
iii) Simple interest calculation

3: i) Finding the square root of a given number


ii) Finding compound interest
iii) Area of a triangle using heron’s formulae
iv) Distance travelled by an object

4: i) Evaluate the following expressions.


a. A+B*C+(D*E) + F*G
b. A/B*C-B+A*D/3
c. A+++B---A
d. J= (i++) + (++i)
ii) Find the maximum of three numbers using conditional operator
iii) Take marks of 5 subjects in integers, and find the total, average in float

5: i) Write a C program to find the max and min of four numbers using if-else.
ii) Find the roots of the quadratic equation.
iiv) Write a C program to simulate a calculator using switch case.

6: i) Find the factorial of given number using any loop.


ii) Find the given number is a prime or not.
iii) Checking a number palindrome

7: i) Find the min and max of a 1-D integer array.


ii) Perform linear search on1D array.
iii) The reverse of a 1D integer array
8: i) Addition of two matrices
ii) Concatenate two strings without built-in functions

9.i) Multiplication two matrices


ii) Reverse a string without built-in string functions

10. i) Write a C program to find the sum of a 1D array using malloc()


ii) Write a C program to find the total, average of n students using structures

11. i) Enter n students data using calloc() and display failed students list
ii) Read student name and marks from the command line and display the student details along
with the total.

12: i) Demonstrate the differences between structures and unions using a C program.
ii) Write a C program to copy one structure variable to another structure of the same type.

13: i) Write a C function to find the length of a string.


ii) Write a C function to transpose of a matrix.

14: i) Write a recursive function to generate Fibonacci series.


ii) Write a recursive function to find the lcm of two numbers.
iii) Write a recursive function to find the factorial of a number.

15: i) Write a C program to swap two numbers using call by reference.


ii) Write a C program to copy one string into another using pointer.

You might also like