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

Lab Report 11

Cp

Uploaded by

Raja Saad
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)
26 views

Lab Report 11

Cp

Uploaded by

Raja Saad
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
You are on page 1/ 10

UNIVERSITY OF ENGINEERING AND TECHOLOGY, TAXILA

DEPARTMENT OF COMPUTER ENGINEERING

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:

Q 6: Write a program to print array elements in reverse order using pointers


CODE:
OUTPUT:
Q 7: Write a program that asks the user to enter a number and generate its table using pointers.
CODE:

OUTPUT:

You might also like