C Programming and Technical

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

Read Solution (Total 0)

C Other Question

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.
output?
Q. What is the use of typedef?

A. (i)It increases the portability.
(ii) It simplify the complex declaration and improve readability of the program.