We know that most of you find technical test/interview to be the toughest part of a Placement Drive. So in this Article let’s discuss 10 common and conceptual questions which will help you understand the technical world and answer technical interview/aptitude round.
rnQuestion 1: Use of an increment statement or decrement statement in C?
rnAnswer:
rnThere are actually two ways you can do this. One is to use the increment operator ++ and decrement operator – -. For example, the statement x++ means to increment the value of x by 1. Likewise, the statement x — means to decrement the value of x by 1.
rnTwo types of increments are:
rn1. pre increment: (increment by 1 then print) and
rn2. post increment: (print then incremented value will be in buffer). Same thing will be with decrement.
rnQuestion 2: In programs we place comment symbols on some codes instead of deleting it. How does this aid in debugging?
rnAnswer:
rnPlacing comment symbols /* */ around a code, also referred to as “commenting out”, is a way of isolating some codes that you think maybe causing errors in the program, without deleting the code.
rnQuestion 3: What is the use of a ‘