what is the difference between arrays and linked list
Answers were Sorted based on User's Feedback
Answer / debiprasad
in array an element does not contain the reference of next
element.where in link list each element contain reference of
each node.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / karthikeyan
array
for one type of data ( like int array , char array )
memory should be kept in track and managed by the user.
linked list for multiple type of data
| Is This Answer Correct ? | 4 Yes | 6 No |
Answer / mesole
in a linked list data are accessed by a means of pointer
WHILE linear array accessed by a means of subcript
insertion, deletion is very easy with linear array while
in a linked list is a little bits complex
| Is This Answer Correct ? | 25 Yes | 41 No |
Answer / anu
In arrays v cant delete elements in middle but in Linked
list v can do this.
| Is This Answer Correct ? | 71 Yes | 139 No |
Answer / harikrishnan
an array is changable length.a list does not.
| Is This Answer Correct ? | 17 Yes | 124 No |
What is integer constants?
write function to reverse char array ... without using second array
What is the code for 3 questions and answer check in VisualBasic.Net?
Differentiate between the = symbol and == symbol?
What is static memory allocation? Explain
consider the following program sigment int n,sum=1; switch(n) { case 2:sum=sum+2; case 3:sum*=2; break; default:sum=0;} if n=2, what is the value of sum a.0 b.6 c.3 d.none
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error
CAN ANYONE PLEASE HELP ON THIS PROGRAM FOR MY EXAM..TQ Write a C program to help a H’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the H’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the H’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80 Your program must do the following task below: a. Define the data structs, menu item types with two components: menu item of type string and menu price of type double. Use an array to declare the data structs. b. Function get data to loads the data into the array menu list. c. Function show menu to show the different breakfast items offered by the restaurant and tell the user how to select the items. d. Function print receipt to calculates and prints the customer receipt. The billing amount should include a 5% tax. e. Format your output with two decimal places. The name of each item in the output must be left-justify. You may assume that the user selects only one item of a particular type. f. The two sample output as shown: Welcome to HiFi’s Restaurant 1 Bacon and Egg $3.45 1 Muffin $2.20 1 Coffee $1.50 Tax 5% $0.35 Amount Due $7.50
Explain how can you determine the size of an allocated portion of memory?
what is default constructor?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?