Professional Documents
Culture Documents
Assignment 5 Q1
Assignment 5 Q1
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:
Ans:
Q5: Write a program to display string in reverse order.
Ans: