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

Programs

Problem

Uploaded by

ahmedafnan1029
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)
9 views2 pages

Programs

Problem

Uploaded by

ahmedafnan1029
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.

Write a C program that uses non recursive function to search for a Key value
in a given list of integers using linear search method.
2. Write a C program that uses nonrecursive function to search for a Key value
in a given sorted list of integers using binary search method.
3. Write a C program that implements the Bubble sort method to sort a given
list of integers in ascending order.
4. Write a C program to determine if the given string is a palindrome or not
(Spelled same in both directions with or without a meaning like madam,
civic, noon, abcba, etc.)
5. Write a C program to merge two files into a third file (i.e., the contents of
the firs t file followed by those of the second are put in the third file).
6. . Write a C program which copies one file to another, file.
7. Write a C program that uses functions to perform the following:
Addition of Two Matrices
Multiplication of Two Matrices
8.Write a program through pointer variable to sum of n elements from array.
9. Write C programs that use both recursive and non-recursive functions . To
find the factorial of a given integer.
10.A Fibonacci sequence is defined as follows: the first and second terms in the
sequence are 0 and 1. Subsequent terms are found by adding the preceding two
terms in the sequence. Write a C program to generate the first n terms of the
sequence.
11. Write a C program, which takes two integer operands and one operator from
the user, performs the operation and then prints the result. (Consider the
operators +,-,*, /, % and use Switch Statement)
12 .Write a simple program that prints the results of all the operators available in
C (including pre/ post increment , bitwise and/or/not , etc.). Read required
operand values from standard input.
13 Write a C program to generate all the prime numbers between 1 and n, where
n is a value supplied by the user.
14.Write program that declares Class awarded for a given percentage of marks,
where mark = 70% = Distinction. Read percentage from standard input
15.Write a C program to display the contents of a file to standard output device.

You might also like