0% found this document useful (0 votes)
62 views

CSE101 C Common Programs List

This document provides a list of common programs in C programming organized by topic. It includes 10 topics: 1) basic operations, input/output, 2) if-else and switch statements, 3) looping constructs, 4) functions, 5) recursion, 6) arrays, 7) strings, 8) pointers, 9) dynamic memory allocation, and 10) structures. For each topic there are 3 example programs outlined that demonstrate the relevant concepts. The programs cover a range of fundamental programming tasks like sorting, searching, mathematical operations, and manipulating different data types.

Uploaded by

kavitha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views

CSE101 C Common Programs List

This document provides a list of common programs in C programming organized by topic. It includes 10 topics: 1) basic operations, input/output, 2) if-else and switch statements, 3) looping constructs, 4) functions, 5) recursion, 6) arrays, 7) strings, 8) pointers, 9) dynamic memory allocation, and 10) structures. For each topic there are 3 example programs outlined that demonstrate the relevant concepts. The programs cover a range of fundamental programming tasks like sorting, searching, mathematical operations, and manipulating different data types.

Uploaded by

kavitha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CSE101

: Problem Solving & Programming in C – Common Programs List


Topic Index

S. No. Topic
I Basic Operations, Input / Output
II IF-Else and Switch
III Looping Constructs
IV Functions
V Recursion
VI Arrays
VII Strings
VIII Pointers
IX Dynamic Memory Allocation
X Structures


L i s t o f P r o gr a m s

S. No. Topic
1. Programs using Input, output and assignment statements
2. Programs using Branching statements
3. Programs using Looping statements
4. Programs using Functions
5. Programs using Recursion
6. Programs using Single and Multidimensional Arrays
7. Programs using strings
8. Programs using Pointers
9. Programs using dynamic memory allocation
10. Programs using Structures

1|Page
CSE101 : Problem Solving & Programming in C – Common Programs List







1. Programs using Input, output and assignment statements

1. C Program to swap two numbers without using temporary
variables.
2. C program to perform addition, subtraction, division, integer
division, multiplication and modulo division on two integer
numbers.
3. C program to prepare a grocery bill. Enter, the name of the
item purchased, quantity and its price per unit. Then display
the bill in the following format.

********************BILL****************************
Item Quantity Price Amount
*****************************************************

******************************************************
Total Amount to be paid
******************************************************

2. Programs using Branching statements

1. C program to check whether a year is a leap year or not.


2. C program to input any character and check whether it is an
alphabet, digit or special character and if a character is
alphabet also check the character is an uppercase or lowercase
alphabet.
3. C program to create Simple Calculator using switch case.

3. Programs using Looping statements

1. C program to display Armstrong number between two


intervals.

2|Page
CSE101 : Problem Solving & Programming in C – Common Programs List

2. C program to print Pascal triangle upto n rows.


3. C programming code to create Pyramid and Patterns like,


4. Programs using Functions

1. C program to display prime numbers between two intervals


using function.
2. C program to derive a menu which includes operations as
convertion from binary to octal number and decimal to
binary number system.
3. Create a function increment( ) and call it thrice in main(). In
the function, declare a variable of type integer, increment the
variable and print the value. Exercise the program with
different storage classes ( auto, static, extern and register).

5. Programs using Recursion

1. C program to calculate GCD of two numbers using a recursive


function.
2. C program to generate Fibonacci series using a recursive
function (Series 0 1 1 2 3 5 8….).

6. Programs using Single and Multidimensional Arrays

1. C program to sort the given array using bubble sort.


2. C program to multiply the contents of two given matrices.

7. Programs using strings

3|Page
CSE101 : Problem Solving & Programming in C – Common Programs List

1. C program to count the words, consonants, vowels, digits,


special characters and spaces in the given line oftext.
2. C program to sort input string in alphabetical order.

8. Programs using Pointers

1. C program to perform binary search using pointers.


2. C program to accept an array of elements as input (numeric or
character). Pass this array by pointer to a function. Inside the
function, exchange the first character with last character,
second with last but one and so on. Print the elements of the
array after exchange in the main program.

9. Programs using dynamic memory allocation

1. C program to get two matrices as input. The values of the


matrix range from 10 to 20. Add the two matrices and in the
resultant matrix, replace the values below 15 with zero.
Implement the program using dynamic memory allocation.

10. Programs using Structures

1. Create a structure named student with rollno, name, mark1,


mark2, mark3, mark4 and mark5 as members. Find the
average with the given marks for n number of students by
creating an array of variables for the structures and sort the
records based on average and display it.

4|Page

You might also like