1.

What is static binding?(a) The process of linking the actual code with a procedural call during run-time(b) The process of linking the actual code with a procedural call during compile-time(c) The process of linking the actual code with a procedural call at any-time(d) All of the mentionedThe question was posed to me in my homework.My query is from C++ Concepts topic in chapter Basics Concepts of C++ of C++

Answer»

Right answer is (b) The process of linking the actual code with a procedural call during compile-time

The BEST explanation: BINDING of calls and VARIABLES with actual code at compile-time is called static binding. For example normally whenever we declare a variable we DEFINE its TYPE hence compiler knows what type should be binded to that variable i.e. compiler can decide about that variable this is called static binding.



Discussion

No Comment Found

Related InterviewSolutions