
Output of a++ + ++a + a++
What is the answer of a++ + ++a + a++
int a=5;c = a++ + ++a + a++;//compiler produces the answer 28!!!//How 
Find a Solution in C, C++, C#
Given a list of integers (more than 1 million) find out how many ways there of selecting two of therm that add up to 0.

Pre and post increment operators
Why does ++i * ++i give 49 when i=5?


What is the purpose of main( ) function?
The function main( ) invokes other functions within it.It is the first function to be called when the program starts execution.Ø It is the starting functionØ It returns an int value to the environment that called the programØ Recursive call is allowed for main( ) also.Ø It is a userdefined...


Sum of two numbers without using arithmetic operators
Ex:int a=10;int b=10;int sum=a+b;without using "+" operator calculate sum





Farm Grid of Cells Arrangement  Asked at Practo
On a farm divided into a grid of cells, every cell either has grass on it or is empty. If two adjacent cells have grass, they will belong to a common field. The common field extends in all directions to all adjacent cells with grass. So, if cell A is adjacent to cell B and cell B is adjacent to cell C, and all three have grass, then they all lie in the same field. If a cell with grass has no adjacent...

TCS C/C++ Questions
1. Difference between "C structure" and "C++ structure".2. Diffrence between a "assignment operator" and a "copy constructor"3. What is the difference between "overloading" and "overridding"?4. Explain the need for "Virtual Destructor".5. Can we have "Virtual Constructors"?6. What are the different types of polymorphism?7. What are Virtual Functions? How to implement virtual functions in "C"8. What...


Even or Odd number
Write a program to find a number if even or odd with out using conditional operator and ifelse?

How to write a program for fibonacci series using perl?
Can someone help me in writing program for fibonacci series using perl..

Tricky C Program questions
1)Write a C program to find a peculiar two digit number which is three times the sum of its digits.2) Bacteria are known to multiply very rapidly. If a certain container contains just one bacterium on the first day and there are twice as many on the next day. In this manner the number of bacteria in the container doubles itself everyday. Assuming that the container would be full on the 10th day with...

Finding a number which is a power of 2in a single step
How to find whether the given number is a power of 2 in single step (without using loops)?

What is the difference between loop and function recursion?
Loop doesnot allocate memory , read more : http://forum.litindia.in/forums/topic/whatisthedifferencebetweenloopandfunctionrecursion/

C Interview Questions
Ans