
Question 1 :Which of these executes Faster i++ or i+1?
Answer :
i++ is faster. The expression i++ requires a single machine instruction such as INR to carry out the increment operation whereas i+1 requires more instructions to carry out this operation.
Question 2 : What Are The Advantages Of Auto Variables?
Answer :
- The same auto variable name can be used in different blocks.
- There is no side effect by changing the values in the blocks.
- The memory is economically used.
- Auto variables have inherent protection because of local scope.
Question 3: What Is A Null Pointer?
Answer :
There are times when it’s necessary to have a pointer that doesn’t point to anything. The macro NULL, defined in , has a value that’s guaranteed to be different from any valid pointer. NULL is a literal zero, possibly cast to void* or char*. The null pointer is used in three ways:
- To stop indirection in a recursive data structure
- As an error value
- As a sentinel value
Question 4 : Why Should I Prototype A Function?
Answer :
A function prototype tells the compiler what kind of arguments a function is looking to receive and what kind of return value a function is going to give back.


Leave a reply to richatamhane05 Cancel reply