Let f be the following C function void fchar p char q p whi
     Let f be the following C function:  void f(char *p) {char *q = p; while (*q) q++; while (p  
  
  Solution
Answer:
 (a):f will reverse the string passed to it.
(b):In f following steps are happening:
 the passed string i.e p is copied to the another string variable i.e q.
 Now using the while loop the pointer to the string reached to the last of the string i.e stored in q.
 Now while pointer p is less than q,swapping of first character is happening with the last character of string.
 That is finally the passed string is reversed.
Note:Please comment in case of any doubt,thanks.

