

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

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...

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



What is the difference between structure & union?
how can we multiply this A*B without using "*" operator?

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 


Recursive function to compute the number of sequences of n binary digits.
How to Write a recursive function to compute the number of sequences of n binary digits that do not contain two 1s in a row. Write a main function to test this function. Input:Input consists of the number of binary digits in the sequence.Output:Output consists of the number of sequences of given binary digits that do not contain two 1s in a rowSample Input:Enter the number of binary digits in the sequence:5Sample...



Print printf without using printf
How to print printf without using printf in C program?

Big endian or Little endian
How will you find whether your system is following Big endian or Little endian representations. Write C code. In Little endian, the lowest byte is stored in lowest address.




In the following code, what is p2? typedef int* ptr ptr p1, p2;
A) an integer B) an integer pointerC) a pointerD) None of the above

C Interview Questions
Ans