You are on page 1of 3

Assignment 5

Q1: Write a program to assign two values to two integer variables a and b respectively. Assign
the memory addresses of variables a and b to pointer variables x and y respectively. Print the
memory addresses and values of variables using these pointers.

Ans:

Q2: Read a character variable through its pointer from the user and print its ASCII using the pointer.

Ans:
Q3: Write a program to read data into an array of 10 floats and find the maximum and minimum
values in the array using pointer.

Ans:

Q4: Write a program to find the length of string.

Ans:
Q5: Write a program to display string in reverse order.

Ans:

You might also like