Frequently Asked C Language Interview Question & Answers

When can you use a pointer with a function?

A pointer can be used with a function-

  • When an address is to be passed to a function

  • When array elements are to be accessed through a function. Passing base address will give access to the whole array.