Skip to Main Content
Introduction to Computational Modeling Using C and Open-Source Tools
book

Introduction to Computational Modeling Using C and Open-Source Tools

by Jose M. Garrido
November 2013
Intermediate to advanced content levelIntermediate to advanced
461 pages
12h 1m
English
CRC Press
Content preview from Introduction to Computational Modeling Using C and Open-Source Tools
136 Introduction to Computational Modeling
FIGURE 10.3: A new node inserted in the front of a linked list.
FIGURE 10.4: A new node inserted after node 2.
main, which appears on lines 20 to 62 calls these functions to create and manipulate
a linked list. The C source code of this program is stored in file datablistp.c.
The C files that define the linked list structures and the function definitions are stored
in linked.h and linked.c.
Listing 10.1: C program for creating and manipulating a linked list.
1 /
*
Program: datablistp.c
2 This program shows how to create nodes and various ways
3 to link them in a linked list using data blocks.
4 The linked list is
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal

Publisher Resources

ISBN: 9781482216783