c++ Programming Glossary: interview
What is the correct answer for cout << c++ << c;? http://stackoverflow.com/questions/10782863/what-is-the-correct-answer-for-cout-c-c is the correct answer for cout c c Recently in an interview there was a following objective type question. int c 0 cout.. would be 01 . But to my surprise later I was told by an interviewer that the correct answer is option c undefined. Now I do know..
How to add two numbers without using ++ or + or another arithmetic operator http://stackoverflow.com/questions/1149929/how-to-add-two-numbers-without-using-or-or-another-arithmetic-operator It was a question asked a long time ago in some campus interview. Anyway today someone asked a question regarding some bit manipulations..
Calculate the factorial of an arbitrarily large number, showing all the digits http://stackoverflow.com/questions/1966077/calculate-the-factorial-of-an-arbitrarily-large-number-showing-all-the-digits number showing all the digits I was recently asked in an interview to describe a method to calculate the factorial of any arbitrarily..
Is .NET “all COM underneath”? http://stackoverflow.com/questions/2280639/is-net-all-com-underneath
Does the size of an int depend on the compiler and/or processor? http://stackoverflow.com/questions/2331751/does-the-size-of-an-int-depend-on-the-compiler-and-or-processor int depend on the compiler and or processor this was an interview question would the size of an integer depend upon the compiler..
What will happen when I call a member function on a NULL object pointer? http://stackoverflow.com/questions/2533476/what-will-happen-when-i-call-a-member-function-on-a-null-object-pointer on a NULL object pointer I was given the following as an interview question class A public void fun std cout fun std endl A a..
What is move semantics? http://stackoverflow.com/questions/3106110/what-is-move-semantics listening to the Software Engineering radio podcast interview with Scott Meyers regarding C 0x . Most of the new features..
int var = 1; void main() { int i = i; } http://stackoverflow.com/questions/3173462/int-var-1-void-main-int-i-i var 1 void main int i i This is an interview question that I had int var 1 void main int i i What is the.. value. On a side note I don't think this is a very good interview question because it is related to knowing some obscure fact..
C++ function to count all the words in a string http://stackoverflow.com/questions/3672234/c-function-to-count-all-the-words-in-a-string all the words in a string I was asked this during an interview and apparently it's an easy question but it wasn't and still..
Interview question - Search in sorted array X for index i such that X[i] = i http://stackoverflow.com/questions/4172580/interview-question-search-in-sorted-array-x-for-index-i-such-that-xi-i such that X i i I was asked the following question in my interview yesterday Consider a Java or C array say X which is sorted and.. 3 3. The best I could think was a linear search. After the interview I though a lot on this problem but could not find any better..
What is a void pointer and what is a null pointer? http://stackoverflow.com/questions/4334831/what-is-a-void-pointer-and-what-is-a-null-pointer and what is a null pointer So I was going through some interview questions an I came across this question The answer to the question..
Searching in an sorted and rotated array http://stackoverflow.com/questions/4773807/searching-in-an-sorted-and-rotated-array in an sorted and rotated array While preparing for tech interview I stumbled upon this interesting question You've been given..
Static constructor in c++ http://stackoverflow.com/questions/5803953/static-constructor-in-c constructor in c This question was asked to me in an interview What is a static constructor Does it exist in C If yes please..
difference between a macro and a const in c++ http://stackoverflow.com/questions/6393776/difference-between-a-macro-and-a-const-in-c and a const in c I was asked this question in a technical interview. What is the difference between a const and a macro in c my..
In which order should floats be added to get the most precise result? http://stackoverflow.com/questions/6699066/in-which-order-should-floats-be-added-to-get-the-most-precise-result result This was a question I was asked at my recent interview and I want to know I don't actually remember the theory of the..
order of evaluation of function parameters http://stackoverflow.com/questions/6725706/order-of-evaluation-of-function-parameters 5 20 1 I thought order is undefined yet I found above as interview question on many sites. c c function order of evaluation ..
Can a pointer to base point to an array of derived objects? http://stackoverflow.com/questions/7196172/can-a-pointer-to-base-point-to-an-array-of-derived-objects base point to an array of derived objects I went to a job interview today and was given this interesting question. Besides the memory..
How to drive C#, C++ or Java compiler to compute 1+2+3+…+1000? http://stackoverflow.com/questions/8763497/how-to-drive-c-c-or-java-compiler-to-compute-123-1000 Java compiler to compute 1 2 3 &hellip 1000 In a recent interview I was asked a really strange question. The interviewer asked.. interview I was asked a really strange question. The interviewer asked me how can I compute 1 2 3 ... 1000 just using compiler..
What is the difference between char a[] = “string”; and char *p = “string”; http://stackoverflow.com/questions/9460260/what-is-the-difference-between-char-a-string-and-char-p-string string and char p string This question was asked to me in interview. I even dont understand the statement. char a string Here what..
C++ interview preparation [closed] http://stackoverflow.com/questions/1569778/c-interview-preparation Here's some links of interview questions to check out C Interview Questions @ DevBistro C Interview Questions @ Blogspot C Interview.. questions to check out C Interview Questions @ DevBistro C Interview Questions @ Blogspot C Interview Questions @ FYI Center Steve.. Questions @ DevBistro C Interview Questions @ Blogspot C Interview Questions @ FYI Center Steve Yegge's Five Essential Phone Screen..
Interview question - Search in sorted array X for index i such that X[i] = i http://stackoverflow.com/questions/4172580/interview-question-search-in-sorted-array-x-for-index-i-such-that-xi-i question Search in sorted array X for index i such that X i..
Missing number(s) Interview Question Redux http://stackoverflow.com/questions/4406110/missing-numbers-interview-question-redux number s Interview Question Redux The common interview problem of determining..
Which one will execute faster, if (flag==0) or if (0==flag)? http://stackoverflow.com/questions/4624536/which-one-will-execute-faster-if-flag-0-or-if-0-flag one will execute faster if flag 0 or if 0 flag Interview question Which one will execute faster if flag 0 or if 0 flag..
Interview Question : Trim multiple consecutive spaces from a string http://stackoverflow.com/questions/5561138/interview-question-trim-multiple-consecutive-spaces-from-a-string Question Trim multiple consecutive spaces from a string This..
Interview Question: Optimal Solution to the problem of finding Heavy integers http://stackoverflow.com/questions/7136590/interview-question-optimal-solution-to-the-problem-of-finding-heavy-integers Question Optimal Solution to the problem of finding Heavy integers..
|