what is the advantage of function pointer
Answer Posted / dwight schrute
suppose u have 2 files:
file1 has following functions:
A1
B1
C1
file12 has following functions:
A2
B2
C2
scenario:
A1 needs to use A2 in turn A2 needs to use B1.
A1 invokes A2;
A2 invokes B1;
for B1 to be available in file2 either shld be extern or in
header file which in turn exposes it to entire file2.
In order to minimize this exposure "pass B1 as a functional
pointer to A2".
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is a program flowchart and how does it help in writing a program?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Are the variables argc and argv are local to main?
What is scope rule of function in c?
What is the value of c?
Who developed c language and when?
What are reserved words with a programming language?
Are local variables initialized to zero by default in c?
What is keyword in c?
Which is the best website to learn c programming?
What is the advantage of an array over individual variables?
What are qualifiers and modifiers c?
What is an arrays?
What is the difference between #include and #include 'file' ?