Posted by : conceptedu in (Interview Questions)
C , DS and C++ Technical Questions!
Tagged Under : C#
C , DS and C++ Technical Questions
1.What is meant by increment and decrement operator in C?
2.How does & differ from &&?
3.How does ++a; differ from a++?
4.How does = differ from ==?
5.with out using a temp variable can you make SWAP operation?
6.What is an operator and list out the various types of operators used in C?
C different types of operators :
1) Arithmetic operators — +,-,*,/
2) Relational operators — >,<
3) Logical operators — &&, ||
4) Assignment operators — =
5) Increment and decrement operators — ++, –
6) Conditional operators.— ? :
7) Bitwise operators — &, |, >>, <<, ^, ~
Special operators — , .
7.What is the importance of using precedence rules in the C operators?
Ans : Giving first preference to certain operators is to get the correct answers.
8.List out the five arithmetic operators in C.
What is the associatively rules involved in theseoperators? *, / , %, +, - .
9.What does the equality operator mean? How these differ from an assignment operator?
10.What are the bit wise logical operators?
