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

Programs

Uploaded by

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

Programs

Uploaded by

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

UNIT: 1

1. Write a Program to check whether a Year is Leap year or not


2. Program to Read weekday number and Print weekday name using Switch statement
3. Number is Even or Odd using Switch
4. Check whether a character is VOWEL or CONSTANT using switch
5. Design calculator with basic opera ons using Switch
6. Check Prime number using goto
7. Factorial of number using goto
8. Sum of First N natural numbers using goto
9. Fibonacci Series using goto
10. Check number is palindrome or not using goto
11. Find nth Root of a number
12. Working of Le Shi and Right Shi Operators
13. Pre-increment and Post increment
14. Roots of a Quadra c Equa on
15. Check Prime Number

UNIT: 2
1. Print first 10 natural numbers using while loop
2. Print Fibonacci Series using do-while loop
3. Factorial of a number using for loop
4. Print table of a number entered by user
5. Check Armstrong Number
6. Check number is Prime or not
7. Calculate number of digits
8. Sum of numbers entered by user and stop when entered zero
9. Check number is Odd or Even using goto
10. Addi on of All Elements of an array
11. Program to insert an element in an array
12. Find Smallest element in array
13. Reverse the array
14. Determinant of 3x3 Matrix
15. Transpose of two matrices
16. Program to Mul ply two matrices
17. Concatenate Two Strings
18. Count no of lines, words and characters in a given text
19. Print Vowels and Constants Characters separately
20. Count Upper Case, Lower Case and Special Character in a string
21. Swapping two numbers using Call by Value and Call by Reference
22. Calculate sum of numbers from 1 to n using recursion
23. Fibonacci series using recursion
24. Length of String using Recursion
25. Sum and average of odd integers between 1 to 300 divisible by 7
26. Print Characters against ASCII numbers from 32 to 126
27. Delete an element from an array
UNIT: 3

1. Calculate Area of Circle using Pointer


2. Swap two numbers using pointers
3. Count number of lines, words, characters in a text using Pointer
4. Find Biggest Value in array using Pointer
5. Add two numbers using Pointers
6. Sum of Array Elements using Pointers
7. Find Transpose of Matrix
8. Read an array of elements and print them in reverse order along with their address
9. Func on returning pointer to the larger value out of two passed
10. Define a structure type, personal, that would contain person name, date of joining and
salary. Using this structure, write a program to read this informa on for one person from the
key board and print the same on the screen. (3.2)
11. What will the difference if above program is going to be implemented through union?
Implement the same program through union and differen ate the output as well as memory
alloca on. (3.2)
12. Write a program to store a character string in block of memory space created by malloc and
then modify the same to store a large string. (3.3)
13. Write a program to create a one dimensional array using Dynamic Memory Alloca on and
search an element in this array using linear search. (3.3)

You might also like