answersLogoWhite

0


Best Answer

You need to make the previous record's next pointer point to the record you are removing's next record, and (if it is a doubly linked list) the next record's previous pointer point to the record you are removing's previous record.

If you are keeping track of the head and/or tail of the list, you need to make sure you update them if you have just removed one of them.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you remove record file in linked list by using C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you cross file and draw file?

Cross filing is done by pushing the file backwards and forwards at a slight angle to remove as much material as possible as quick as possible. Draw filing is done by using the file sideways along the edge of a piece to produce a good finish an remove very little material


How to store the file in array variable using perl?

As simple as that. If your Perl is in: /usr/bin/perl, then just copy and paste the text below in a file (e.g. my_prog.pl), make my_prog.pl executable (chmod u+x my_prog.pl) and execure this (./my_prog.pl) . I hope my comments will allow you to adapt this small script according to your needs. ---- #!/usr/bin/perl ########################### #### This is how you open the file #### ########################### # First define the "record delimiter", if you wish. Options: # $/ = "\n" # One line is one record! This is the default, no need to be defined. # $/ = "\n\n" # An enpty line is the record delimiter (useful for mail headers, etc.) # $/ = "you_name_it!" # According to your specific problem. # try opening the file for reading and associate it with the # "File Pointer" FP. If you fail the msg below will be printed # and the program will halt. open (FP, '/etc/hosts') or die('Cannot open file for reading'); ################################# #### This is how you store the file in arrary #### ################################# # Read the file; here record=line. my @records = ; # and do not forget to close FP close FP; ####################### #### This is how you test it #### ####################### # Print them, just for testing foreach my $record (@records) { chomp $record; # Get rid of the trailing "\n" that apears in each line $record = "[$record]"; # Wrap the record in [] for the sake of presentation print "$record\n"; } ----


What kind of styles are located in a separate css file and linked to the HTML language?

All the elements taht render the appearance of the page are contained within the CSS file and are linked to the HTML file within the <Head> element as so: <link href="basic.css" type="text/css" rel="stylesheet" media="screen"/> <


Write a program which reads names of students and their telephones from a file and produce a linked list ordered in alphabetical order by the surname of the student?

write a program which reads names of students and their telephones from a file and produce a linked list ordered in alphabetical order by the surname of the student.


Can you add record in middle of the file in c language?

The standard C library-functions do not support record-oriented file-access.Neither do the common operating systems like Windows and Unix.So basically the answer is no.

Related questions

What is linked file?

The next record in a linked list is found at the address stored in the record. Records are added at any location in the DASD(Direct Access Storage Device) and pointers adjusted to include them. Deletions are not erased, but pointers changed to omit the deleted record. Just like a normal linked list has a value part in its structures, here the linked list structure can have multiple value parts.


What is linked file organization?

The next record in a linked list is found at the address stored in the record. Records are added at any location in the DASD(Direct Access Storage Device) and pointers adjusted to include them. Deletions are not erased, but pointers changed to omit the deleted record. Just like a normal linked list has a value part in its structures, here the linked list structure can have multiple value parts.


How can you remove an unmoveable file called Dd8?

To remove files that appear to be unmovable, you need to close the program that is using that file. If this does not work, the only way to remove the file is to boot into safe mode using the F8 key and then go to the location of the file and remove it. By booting into safe mode, you bypass anything that could be using the file.


How can you insert a table in your document?

To add an Excel file to a Word document, just use the insert object menu option and select the appropriate Excel file to imbed in the document. When you observe the Excel document in Word, you most likely will see a table. When you double-click on the Excel table, the computer will open a section in the Word document that lets you edit the Excel document.


You want C program on students information record using file handling?

yes sir


When was File for Record created?

File for Record was created in 1943.


Why embedded object document requires more size than linked object?

Because a linked object is created and stored in a separate source file and then it is linked to the destination file, while an embedded object is created in a separate source file but then it is inserted into the destination file , becoming the part of that file.


Why embedded object documents requires more size than linked object?

Because a linked object is created and stored in a separate source file and then it is linked to the destination file, while an embedded object is created in a separate source file but then it is inserted into the destination file , becoming the part of that file.


What is a file containing information that is copied and often linked to a different file?

source file


When using CSVDE what is the first line of the text file that uses proper attribute names?

Header Record


How do you remove an account off your computer that you dont want?

Find where the file is stored on your computer and delete it. If you have the program, open it to the file/account. Choose save as. It will show where the file is. Using my computer, or explorer, go to the file and delete it. If you are using Quicken or another financial product, read the directions so that you only remove the one you want and not others.


Is direct access file ordered?

A direct access file, in most systems, refers to a file where individual records are retrieved directlly by using a record number to refer to a specific position in a file. The alternative is to reach the desired record by sequential access: Reading all the records from the beginning until you reach the desired position in the file. The records in the file do not have to be in any specific order.