Wednesday, April 9, 2008

C C++ Technical Interview Questions List and Free Resources - 12

More C and C++ Questions for Preparation / Tutorials / admission interview important questions

How do you decide which integer type to use?

What should the 64-bit integer type on new, 64-bit machines be?

What?s the best way to declare and define global variables?

What does extern mean in a function declaration?

What?s the auto keyword good for?

I can?t seem to define a linked list node which contains a pointer to itself.

How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

How can I declare a function that returns a pointer to a function of its own type?

My compiler is complaining about an invalid redeclaration of a function, but I only define it once and call it once. What?s happening?

What can I safely assume about the initial values of variables which are not explicitly initialized?

Why can?t I initialize a local array with a string?

What is the difference between char a[] = ?string?; and char *p = ?string?; ?

How do I initialize a pointer to a function?

C / C++ questions

What is the output of printf("%d")

What will happen if I say delete this

Difference between "C structure" and "C++ structure".

Diffrence between a "assignment operator" and a "copy constructor"

What is the difference between "overloading" and "overridding"?

Explain the need for "Virtual Destructor".

Can we have "Virtual Constructors"?

What are the different types of polymorphism?

What are Virtual Functions? How to implement virtual functions in "C"

What are the different types of Storage classes?

What is Namespace?

What are the types of STL containers?.

Difference between "vector" and "array"?

How to write a program such that it will delete itself after exectution?

Can we generate a C++ source code from the binary file?

What are inline functions?

Talk sometiming about profiling?

How many lines of code you have written for a single program?

What is "strstream" ?

How to write Multithreaded applications using C++?

Explain "passing by value", "passing by pointer" and "passing by reference"

Write any small program that will compile in "C" but not in "C++"

Have you heard of "mutable" keyword?

What is a "RTTI"?

Is there something that I can do in C and not in C++?

Why preincrement operator is faster than postincrement?

What is the difference between "calloc" and "malloc"?

What will happen if I allocate memory using "new" and free it using "free" or allocate sing

"calloc" and free it using "delete"?

What is Memory Alignment?

Explain working of printf.

Difference between "printf" and "sprintf".

What is "map" in STL?

When shall I use Multiple Inheritance?

What are the techniques you use for debugging?

How to reduce a final size of executable?

Give 2 examples of a code optimization.

More Technical, HR, Freshers, Walkins, Top IT Companies, Software Company, Developers Jobs, Admission, Project, Selection Interview important, mostly asked popular top questions for students in India, USA, UK, etc. Keep watching PreviousPapers.blogspot.com for more free C, C++, Java, ASP, NET, Basic internet, web designing, scripting questions and completely detailed answers, programs and solutions.

No comments: