Cpp

C++ quick facts

Compiler settings Use –pedantic-errors compiler flag. It will guarentee that code is compiled according to used c++ standard. If this flas is not used, sometimes, compiler extensions allow some specific code which is not compatible with standard to compile without an error. For example – If flag is not used then, g++ compiler will give …

C++ quick facts Read More »

Size of various types in c++

While programming in C++, it is important to know the size of various basic datatypes supported by C++. Below code will give you the size of various basic datatypes. Code //============================================================================ // Name : Study.cpp // Author : Kirteekumar // Version : // Copyright : // Description : size of various types in C++ , …

Size of various types in c++ Read More »