Logo F2FInterview

C Interview Questions

Q   |   QA

 Major differences between arrays and linked lists are: 

  1. In array consecutive elements are stored in consecutive memory locations whereas in linked list it not so. 
  2. In array address of next element is consecutive and whereas in linked list it is specified in the address part of each node.
  3. Linked List makes better use of memory than arrays.
  4. Insertion or deletion of an element in array is difficult than insertion or deletion in linked list.

Major uses of typedef are:

  1. It increases the portability.
  2. It simplify the complex declaration and improve readability of the program.

 A malloc( ) function allocates a block of memory of the specified size and returns a pointer of specified data type whereas a calloc( ) function allocates a space for an array of elements , initializes them to zero and then returns a pointer to the memory. 

c stands for counter and v stands for vector.


In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: