Week 11 Tasks

Pointers

Task 52

Write a program in C to add two numbers using pointers

Task 53 (Experiment 20)

WAP to find the permutation and combination for a given value of n and r with the help of pointers.

HINT

$$ C(n,r) = \frac{n!}{r! \ * \ (n-r)!} $$

$$ P(n,r) = \frac{n!}{(n-r)!} $$

Task 54

Write a program in C to print the elements of an array in reverse order using pointers.

Task 55

Using pointers, write a function that recieves a charachter string and a charachter as argument and deletes all occurences of this charachter in the string and prints the corrected string without any holes.