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
You are on page 1/ 1
Tasks
1. Write a program to show the address and values of a normal and a
pointer variable through different techniques. 2. Write a program to swap 2 values through a function using call by reference logic/using pointer. 3. Write a program to find the area and circumference of circle by using function logic of passing arguments by reference. 4. Write a program to show the addresses and values of array elements through a pointer. 5. Write a program to pass the array to a function and displays all its elements through using pointer and then show the sum of all elements through using pointers. 6. Write a program to add two numbers using pointers. 7. Write a program to add two numbers using call by reference. 8. Write a program which performs the following tasks: − initialize an integer array of 10 elements in main( ) − pass the entire array to a function modify( ) − in modify( ) multiply each element of array by 3 − return the control to main( ) and print the new array elements in main( ) 9. Write a program to find the smallest and largest numbers in an array using pointers.