1.

What will we not do with function pointers?(a) allocation of memory(b) deallocation of memory(c) both allocation & deallocation of memory(d) finds memory statusI have been asked this question in an interview.Question is taken from Pointer to Function in section Functions, Namespaces & Exceptions in C++ of C++

Answer» CORRECT choice is (C) both allocation & deallocation of memory

The best I can EXPLAIN: As it is USED to execute a block of code, So we will not allocate or deallocate memory.


Discussion

No Comment Found

Related InterviewSolutions