include guards – why to write in header files – C, C++

Answer: include guards in header file in C, C++ is used to avoid compiler error i.e. redefinition of function, variable or class. #include guards also know as header guards technique are heavily used in C and C++ projects that have multiple headers and source Read more →

Explain command line arguments in C, C++ with real scenario

Command line arguments in C, C++ programs supply values from outside of a program. The same concept of command line argument is applied to all the languages  for example, c, c++,c# and java etc. Also, command line arguments are applicable to scripts also. Some Read more →