Posted by : Anonymous Monday, 5 November 2012



Marks Distribution:
1 + 0.5 + 0.5 + 5 + 5 + 3 + 5 = 20

Assignment Helping Topic:
Pointer De-referencing

Tasks:

1 – Declare an array of pointer integer type having five elements.
2 – Declare and initialize integer array of five elements named as a. For example:        
       int a = {1,2,3,4,5};
3 – Declare and initialize an array of character type, named as b. For example:
      char b = {‘a’,’b’,’c’,’d’,’e’};
4 – You have to assign values of integer array to integer pointer array.
5 – Then you have to assign values of character array to pointer array of integer type.
6 – Print values of array a, so that the output is as below (for the set of values as provided in step 2 and 3)

Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © virtual university of pakistan - Skyblue - Powered by Blogger - Designed by Johanes Djogan -