You are on page 1of 1

CP programs for practice

Program to create, initialize, assign and access a pointer variable.


Program to swap two numbers using pointers.
Program to count vowels and consonants in a string.
Program to read array elements and print with addresses.
Program to read and print student details using structure pointer, demonstrate example of
structure with pointer.
Store information (name, roll and marks) of a Student Using Structure and display the same
Add Two Distances (in inch-feet) System Using Structures to a function
Add Two Complex Numbers by Passing Structure to a Function
Program to print substring from a given string
Program on occurrences of number of character in a string
Program to replace all the vowels with a special character ‘@’

You might also like