Friday 29 May 2009

function which is returning pointer


Return type of function can be pointer to char, pointer to int, pointer to float, pointer to double and pointer to void.



Examples:


 a.   Function returning pointer to character.

  b.   Function returning pointer to integer

  c.   Function returning pointer to float.

  d.  Function returning pointer to double.

  e.  Function returning pointer to void i.e. generic pointer. 











No comments:

Post a Comment