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

C++ Programs List 2021

Uploaded by

rajipe
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)
30 views2 pages

C++ Programs List 2021

Uploaded by

rajipe
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

1. Function with no arguments and no return values.

2. Function with arguments and no return values.


3. Function with arguments and with return values.
4. Function without arguments and no return values.
5. C++ Program for passing array to function and print array elements
6. Matrix multiplication in C++
7. Call by value in c++
8. Call by reference in c++
9. Call by addresss using pointers in c++
10. Factorial using recursion in c++
11. Write a program to read person details using cin statement and display the data
12. Write a program to read employee data and calculate gross salary and display it
13. Write a program to find the area of a rectangle
14. Write a program to perform some of numbers using while loop
15. Write a program to find the sum of squares of n numbers using while loop
16. Write a program to display first n numbers using for loop
17. Write a program to print even numbers using for loop
18. Write a c++ program using do while loop to print sum of n numbers
19. Write a program to display multiplication table using nested for loops
20. Program using break statement
21. Program to demonstrate continue statement
22. Program to count the [Link] students passed in the class using continue statement
23. Program to read person age details and find the age of youngest person and eldest person
24. Program using switch case statement to display the movie details based on the menu option
25. Program to find the square of given number & use goto statement if the input number is
negative
26. Program to develop a calculator which perform various arithmetic operations using switch case
27. Wap to decide the grade for the given marks using else if ladder
28. WAP to find area of a rectangle
29. WAP to count no of students passed in a class using continue statement
30. Find the value of the expression x=a-b/3+c*2-1
31. Program using inline functions
32. Program to send arguments to a function using pass by value methods
33. Program to send arguments to a function using pass by address methods
34. Program to send arguments to a function using pass by reference methods
35. Program to define a struct student, read the data and display
36. Program for default arguments
37. Program to read student details using array of structures
38. Program using pointers to access data values
39. C++ program for passing array to function and print array elements
40. Program using pointers to evaluate the pointer expression.
41. Program to define a structure inventory and access the elements using pointers
42. Program for the static storage class
43. Program using new and delete operators
44. Program to find the sum of array elements and allocate the memory dynamically
45. Program to count [Link] even and odd numbers and allocate dynamically
46. WAP to find area and perimeter of a circle and define const pi in the program
47. WAP to find square root of x and square root of y and assign to z using math functions
48. Program using compiler control directive ( # define test 5 )
49. Program on class
50. Program to calculate area of rectangle using class
51. Program to create the following classes and create the objects Class triangle and Class square
52. Program to define circle and rectangle using class
53. Program to define member function outside class using scope resolution operators
54. Program to find max of given two numbers using class
55. Program to find average marks of given two students using class
56. Program to demonstrate friend class and to find sum of two numbers
57. Program using friend function
58. Program using static data members
59. Program using static data members and member functions
60.

You might also like