C -LANGUAGE
POINTERS
© Nex-G Exuberant Solutions Pvt. Ltd.
POINTER
[Link] to print address of variables using address
operator.
[Link] to dereference pointer variables.
[Link] to print the size of pointer variable and
size of value dereference by that pointer.
[Link] to show pointer arithemetic .
[Link] to print the post/pre increment and
decrement in a pointer variable of base type int.
[Link] to show pointer to pointer .
© Nex-G Exuberant Solutions Pvt. Ltd.
POINTER WITH ARRAY
[Link] to print the value and address of the
elements of an array.
[Link] to print the value and address of the
elements of an array using pointer notation.
[Link] to print the value and address of array
elements using pointer and subscript notation.
[Link] to print the addition of array using pointer.
[Link] 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.
[Link] to take 10 number’s array and print
multiplication of [4] and [8] indexing elements in
an array using pointer.
[Link] 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.
[Link] 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.
[Link] 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.
[Link] 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.
[Link] 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.
[Link] to show pointer arithmetic in void
pointers.
© Nex-G Exuberant Solutions Pvt. Ltd.
POINTERS WITH STRING
[Link] string length using pointer.
[Link] two strings using pointer.
[Link] two strings using pointer.
[Link] two strings using pointer.
[Link] to upper using pointer.
[Link] of the string using pointer
[Link] to lower using pointer.
[Link] string is palindrom using pointer.
[Link] first character of the string using
pointer.
© Nex-G Exuberant Solutions Pvt. Ltd.
CONTINUE
47. String to ASCII using pointer.
[Link] character in string using pointer.
[Link] frquency of user entered character in
the string using pointer.
[Link] vowels in the string using pointer.
[Link] the string using pointer.
[Link] to enter a number of 4 digit and display
it in words.
© Nex-G Exuberant Solutions Pvt. Ltd.
POINTERS WITH STRUCTURE
[Link] to understand pointers to structure.
[Link] to understand how a pointer to
structure variable is sent to a function.
[Link] 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.