What is Constructor ? How it is called ?
Constructor is a member function of the class, with the name of the function being the same as the class name. It also specifies how the object should be initialized.Ways... Read more »
Constructor is a member function of the class, with the name of the function being the same as the class name. It also specifies how the object should be initialized.Ways... Read more »
1. Treated like macro definitions by C++ compiler. 2. Meant to be used if there’s a need to repetitively execute a small block if code which is smaller. 3. Always... Read more »
C++ places greater emphasis on type checking, compiler can diagnose every diff between C and C++ 1. structures are a way of storing many different values in variables... Read more »
malloc: allocate n bytes calloc: allocate m times n bytes initialized to 0 Read more »
sprintf: a function that puts together a string, output goes to an array of char instead of stdout printf: prints to stdout Read more »
“=” is an assignment operator while, “==” is comparative operator a=b; //b’s value is stored in a if( a==b) // a’s value is compared... Read more »