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

c Programing

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

c Programing

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

C PROGRAMING

Practice question

1. C Program To Print Your Own Name.


2. C Program to Make a Simple Calculator .
3. C Program to Check if a Number is Prime or not
4. C Program to Swap Two Numbers using temporary variable.
5. C Program to Find the Size of int, float, double, and char using sizeof operator directly.
6. Program to Print Prime Numbers From 1 to 50 .
7. C Program To Find Area And Perimeter of Rectangle
8. C program to Find the Largest Number Among Three Numbers
9. C program to check if a given year is leap year or not
10. C Program to implement a Simple Calculator using if-else statements
11. C program to check given number is Armstrong number or not using Functions
12. C Program to check if a number is a palindrome or not
13. C program to print
*
**
***
****
*****
14 . C program to print
1
12
123
1234
12345
15. C program to print
1
23
456
7 8 9 10
16. C Program to Find Sum of Natural Numbers using Recursion
17. Write a Program to find the factorial of a given number using recursion.
18. C Program to Print Fibonacci Series Using Recursion
19. C Program to Find Largest Element in an Array using linear search
20. C Program to implement binary search.
21. C program for the implementation of bubble sort.
22. C program for the implementation of Selection sort.
23 C Program to Check Whether Two Matrices Are Equal or Not
First Matrix:
1, 2, 3, 4
1, 2, 3, 4
1, 2, 3, 4
1, 2, 3, 4
Second matrix:
1, 2, 3, 4
1, 2, 3, 4
1, 2, 3, 4
1, 2, 3, 4
24 C Program for Transpose of a Matrix
1, 1, 1, 1
2, 2, 2, 2
3, 3, 3, 3
4, 4, 4, 4
25. C Program to Add Two Square Matrices
26. c program to calculate sum of diagonal element of 4*4 matrix.
27 C Program to multiplication of Two Matrices
Input:
mat1[][] = {{1, 2},
{3, 4}}
mat2[][] = {{5, 6},
{7, 8}}
Multiplication of two matrices:
{{1*5 + 2*7 1*6 + 2*8},
{3*5 + 4*7 3*6 + 4*8}}
Output:
{{19, 22},
{43, 50}}
28. C program to illustrate the concept of returning pointer from a function
29. C program to interchange value of two variables using pointer.
30. Write a C program to store the information of Students using a Structure.
Name
Roll Number
Age
Total Marks
31. C program to print the details of the 10 books using array of structure & structure
should contain name & pages.
32. write a structure of store and display information of 5 student. Information should be
name, mark and percentage.
33. C program to demonstrate use of rename () function.

You might also like