Tags:C Interview Question, C++ Questions | 242 views
Procedures and Functions A function is a section of code that has some separate functionality or does something that will be done over and over again. As a basic example, you are writing code to print out the first 5 squares of numbers, then the first 5 cubes, then the next 5 squares again. We [...]
Tags:OOPS Questions | 174 views
1) Encapsulation It is the mechanism that binds together code and data in manipulates, and keeps both safe from outside interference and misuse. In short it isolates a particular code and data from all other codes and data. A well-defined interface controls the access to that particular code and data. 2) Inheritance It is the [...]
Tags:OOPS Questions | 226 views
In object-oriented programming, polymorphism is a generic term that means ‘many shapes’. (from the Greek meaning “having multiple forms”). Polymorphism is briefly described as “one interface, many implementations.” polymorphism is a characteristic of being able to assign a different meaning or usage to something in different contexts – specifically, to allow an entity such as [...]
Tags:C Interview Question | 14,573 views
What is the most efficient way to reverse a linklist? How to sort & search a single linklist? Which is more convenient – single or double-linked linklist? Discuss the trade-offs? What about XOR-linked linklist? How does indexing work? char s[10]; s=”Hello”; printf(s); What will be the output? Is there any error with this code? What [...]