C++ Internals 1 QB
C++ Internals 1 QB
Adding new data and functions is Adding new data and function is
not easy. easy.
iii. OOPs provide ability to simulate real-world event much more effectively. We can provide the solution
of real word problem if we are using the Object-Oriented Programming language.
3. OPERATORS IN C++
(in book)
#include<CONIO.H>: includes the console input output library functions. The getch() function is defined
in conio.h file.
int main() : The main() function is the entry point of every program in C++ language. The void keyword
specifies that it returns no value.
Cout << "Welcome to C++ Programming." is used to print the data "Welcome to C++ Programming."
5. IDENTIFIER VS KEYWORDS
A keyword is a predefined and reserved word that carries special meaning. You cannot use it as a
variable name, constant name etc.
Identifer are unique names given to variables, classes , functions or etc by the programmer. They are
usually variables.
a constant is a value that cannot be changed during the execution of the program.
Constants often represent fixed values used frequently in the code, such as the
value of pi or the maximum size of an array.
INSERTION
The insertion operator ( << ) points to the ostream object wherein the information is inserted.
EXTRACTION
The cin is used in conjunction with stream extraction operator (>>) to read the input from a console.
cin is an istream object from which information can be extracted. used to EXTRACT the information or
the value of a variable
In C++ we cannot call a main() function from any other point. The
main() function is the single execution point.
C does not support function overloading, which means you cannot have
multiple functions with the same name but different parameter lists.
C++, you can overload the main() function, providing different versions
with varying parameters.
In C, if the main() function does not explicitly return a value,
In C++, if the main() function does not contain a return statement, the
compiler implicitly adds a return 0; at the end of the function.
13. RULES FOR NA MING VARIABLES IN C++, HOW THEY DIFFER FROM ANSI C