C Programming Question and Answers

49. What is operator in C?
 
  • The symbols which are used to perform logical and mathematical operations in a C program are called C operators.
  • These C operators join individual constants and variables to form expressions.
  • Operators, functions, constants and variables are combined together to form expression.
 
Your Name Your Email-ID
Your Answer
50. What are the different types of operators in C?
  C language offers many types of operators. They are
  • Arithmetic operators
  • Assignment operators
  • Relational operators
  • Logical operators
  • Bit wise operators
  • Conditional operators (ternary operators)
  • Increment/decrement operators
  • Special operators
 
Your Name Your Email-ID
Your Answer
51. What is bitwise operator in C?
 
  • Bitwise operators are used to perform bit operations. Decimal values are converted into binary values which are the sequence of bits and bit wise operators work on these bits.
  • Bit wise operators in C language are &(bitwise AND), | (bit wise OR), ~ (bitwise OR), ^ (XOR), << (left shift) and >> (right shift).
 
Your Name Your Email-ID
Your Answer
52. What is the significance of storage class?
  The storage class, in general, determines the scope and lifetime of a variable, which in turn helps to economize the memory usage.
 
Your Name Your Email-ID
Your Answer