I think it more or less refers to the method of program designing in which the modules are constructed in such a way that they do not couple unintentionally with other modules.This means the application software is designed in such a way that the modules or functions in it are not able to access information that they do not need in order to do their job
No. Data hiding is a feature of object oriented programming. C does not support OOP, and therefore has no private member access. All members are public in C.
Encapsulation.
The need to declare header files is not compulsory in C++. You may place all your code in a single source file if you so desire. However, header files are useful in that they separate interface from implementation and aid in hiding information.
The main features of OOP are the same regardless of the language. They are: encapsulation; data hiding; inheritance; and polymorphism.
There is no such thing as a null printer in C++. You are perhaps thinking of the null device to which output can be redirected from the command line (effectively hiding the output of a program). However this has nothing whatsoever to do with C++, it is entirely dependant upon the operating system.
Data hiding is a property that only relevant information is exposed to the user and rest of the informations remains hidden from the user
No. Data hiding is a feature of object oriented programming. C does not support OOP, and therefore has no private member access. All members are public in C.
Encapsulation.
The need to declare header files is not compulsory in C++. You may place all your code in a single source file if you so desire. However, header files are useful in that they separate interface from implementation and aid in hiding information.
The main features of OOP are the same regardless of the language. They are: encapsulation; data hiding; inheritance; and polymorphism.
There is no such thing as a null printer in C++. You are perhaps thinking of the null device to which output can be redirected from the command line (effectively hiding the output of a program). However this has nothing whatsoever to do with C++, it is entirely dependant upon the operating system.
C and c++ programs can work on all plate form if they do not have machine dependent code.The executable files of these can not work no different plate forms because they have machine dependent information and if machine changes the information will become meaningless .
b+b+b+c+c+c+c =3b+4c
c + c + 2c + c + c = 6c
b + b + b + c + c + c + c = 3b + 4c
4c
c + c + c + c + c = 5 * c.