You are on page 1of 17

C -LANGUAGE

POINTERS

© Nex-G Exuberant Solutions Pvt. Ltd.


POINTER

1.WAP to print address of variables using address


operator.
2.WAP to dereference pointer variables.
3.WAP to print the size of pointer variable and
size of value dereference by that pointer.
4.WAP to show pointer arithemetic .
5.WAP to print the post/pre increment and
decrement in a pointer variable of base type int.
6.WAP to show pointer to pointer .

© Nex-G Exuberant Solutions Pvt. Ltd.


POINTER WITH ARRAY

7.WAP to print the value and address of the


elements of an array.
8.WAP to print the value and address of the
elements of an array using pointer notation.
9.WAP to print the value and address of array
elements using pointer and subscript notation.
10.WAP to print the addition of array using pointer.
11.WAP to print the subtraction of array using
pointer.

© Nex-G Exuberant Solutions Pvt. Ltd.


CONTINUE…

12. WAP to print the reverse of array using


pointer.
13. WAP to print the max element of array using
pointer.
14. WAP to print the minimum element of array
using pointer.

© Nex-G Exuberant Solutions Pvt. Ltd.


CONTINUE

15. WAP to take 10 number’s array and print


changed indexing with [0] and [7] each other in
an array using pointer.
16.WAP to take 10 number’s array and print
multiplication of [4] and [8] indexing elements in
an array using pointer.
17.WAP to take 10 number’s array and print
square of [2] and [9] indexing elements in an
array using pointer.

© Nex-G Exuberant Solutions Pvt. Ltd.


CONTINUE

18. WAP to take 10 number’s array and set 0 at


indexing position [1],[3],[5],[8] elements in an
array using pointer.
19. WAP to insert an element as desired
location in an array using pointer.
20. WAP to find second highest in an array
using pointer.

© Nex-G Exuberant Solutions Pvt. Ltd.


POINTER TO AN ARRAY

21. WAP to print the values and address of


elements of a 2-D array.
22. WAP to print the elements of a 2-D array by
subscripting a pointer to an array variable.
23. WAP to insert an element in 2D array with
dimentions 5*7 using pointer.
24. WAP to add two matrix using 2D array with
dimentions 4*5 and 4*5 using pointer.
25. WAP to transpose the matrix with
dimentions 4*3 using pointer.

© Nex-G Exuberant Solutions Pvt. Ltd.


CONTINUE

26. WAP to multiply two matrix with dimentions


4*3 and 3*5 using pointer.
27.WAP to substract two matrix using 2D array
with dimentions 4*5 and 4*5 using pointer.

© Nex-G Exuberant Solutions Pvt. Ltd.


POINTER AND FUNCTION

28. WAP to show call by reference with swaping


two values using function.
29. WAP to show call by reference with post
increment of two values using function.
30. WAP to show call by reference with all
arithemetic operation using pointer and
function.
31.WAP to show function returning pointer
means a function return a pointer.

© Nex-G Exuberant Solutions Pvt. Ltd.


CONTINUE

32. WAP to show that change to the array made


inside the function affect the original array.
33.WAP to show passing 2D array in the
function.

© Nex-G Exuberant Solutions Pvt. Ltd.


ARRAY OF POINTERS

34. WAP to show the concept of array of


pointers.
35.WAP to show operation of array of pointers
with 2D array.

© Nex-G Exuberant Solutions Pvt. Ltd.


VOID POINTERS

36. WAP to show 3 examples of the concept of


void pointers.
37.WAP to show pointer arithmetic in void
pointers.

© Nex-G Exuberant Solutions Pvt. Ltd.


POINTERS WITH STRING

38.Find string length using pointer.


39.Compare two strings using pointer.
40.Concatenate two strings using pointer.
41.Copy two strings using pointer.
42.Lower to upper using pointer.
43.Reverse of the string using pointer
44.Upper to lower using pointer.
45.Check string is palindrom using pointer.
46.Print first character of the string using
pointer.

© Nex-G Exuberant Solutions Pvt. Ltd.


CONTINUE

47. String to ASCII using pointer.


48.Count character in string using pointer.
49.Find frquency of user entered character in
the string using pointer.
50.Count vowels in the string using pointer.
51.Sort the string using pointer.
52.WAP to enter a number of 4 digit and display
it in words.

© Nex-G Exuberant Solutions Pvt. Ltd.


POINTERS WITH STRUCTURE

53.WAP to understand pointers to structure.


54.WAP to understand how a pointer to
structure variable is sent to a function.
55.WAP to show a pointer to structure is
returned from a function.

© Nex-G Exuberant Solutions Pvt. Ltd.


POINTERS WITH STRING

NOTE—Time to complete is--24 hours.

© Nex-G Exuberant Solutions Pvt. Ltd.

You might also like