KyaPoocha.com

Huge Collection of Interview Questions


Archive for January, 2007

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 »

What are inline functions? 

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 »

Difference between C structure and C++ structure? 

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 »

Difference between calloc and malloc? 

malloc: allocate n bytes calloc: allocate m times n bytes initialized to 0  Read more »

Difference between printf and sprintf? 

sprintf: a function that puts together a string, output goes to an array of char instead of stdout printf: prints to stdout  Read more »

What is the difference between = and == in C? 

“=” 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 »

Page 9 of 9« First...«56789