Lab Report 11
Lab Report 11
Computing Programming
Lab Report
Submitted to:
SIR: SHEHARYAR.
Submitted by:
Name: Raja Saad Ikram
Reg No: 21-CP-85
Q1: Write a program to print the address of a variable whose value is input from user.
CODE:
OUTPUT:
Q 2: Write a program to find out the greatest among two numbers using pointers
CODE:
OUTPUT:
Q3: Write a program to add two numbers using pointers
CODE:
OUTPUT:
Q 4: Write a program to find the largest element of an array using dynamic memory allocation.
Code:
OUTPUT:
Q5 : Write a program to compute the sum of all elements in an array using pointers
CODE:
OUTPUT:
OUTPUT: