C Programming and Technical

output?
Q. Why Preincrement operator is faster than Postincrement?

A. Evaluation of any expression is from left to right. Preincrement is faster because it doesn't need to save the current value for next instruction whereas Postincrement needs to saves current value to be incremented after execution of current instruction.

Read Solution (Total 0)

C Other Question

output?
Q. Where are the auto variables stored?

A. Auto variables are stored in main memory and their default value is a garbage value.
output?
Q. Difference between arrays and linked list?

A. Major differences between arrays and linked lists are:
(i) In array consecutive elements are stored in consecutive memory locations whereas in linked list it not so.
(ii) In array address of next element is consecutive and whereas in linked list it is specified in the address part of each node.
(iii) Linked List makes better use of memory than arrays.
(iv) Insertion or deletion of an element in array is difficult than insertion or deletion in linked list