what is the difference between arrays and linked list
Answer Posted / bhumika garg
the main difference is that in array data is not linked to
each other but in linked lists data is connected to each
other as every node is connected to previous node.
| Is This Answer Correct ? | 47 Yes | 14 No |
Post New Answer View All Answers
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
What are comments and how do you insert it in a C program?
When should you not use a type cast?
How are Structure passing and returning implemented by the complier?
write an algorithm to display a square matrix.
What is the meaning of && in c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Which is best book for data structures in c?
In c programming language, how many parameters can be passed to a function ?
praagnovation
What's the best way of making my program efficient?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is an lvalue in c?
What are types of functions?