Mastering C 2nd Edition Venugopal pdf download
Mastering C 2nd Edition Venugopal pdf download
https://ebookultra.com/download/mastering-c-2nd-edition-
venugopal/
https://ebookultra.com/download/mastering-the-power-of-self-
hypnosis-2nd-edition-c-roy-hunter/
https://ebookultra.com/download/marine-polysaccharides-food-
applications-1st-edition-vazhiyil-venugopal/
https://ebookultra.com/download/mastering-blender-2nd-edition-tony-
mullen/
https://ebookultra.com/download/mastering-oracle-sql-2nd-edition-
mishra/
Mastering Marketing 2nd Edition Ian Ruskin-Brown
https://ebookultra.com/download/mastering-marketing-2nd-edition-ian-
ruskin-brown/
https://ebookultra.com/download/mastering-rebreathers-2nd-edition-
jeffrey-e-bozanic/
https://ebookultra.com/download/mastering-cad-cam-2nd-edition-ibrahim-
zeid/
https://ebookultra.com/download/mastering-enterprise-javabeans-2nd-
edition-ed-roman/
https://ebookultra.com/download/mastering-asp-net-with-visual-c-1st-
edition-a-russell-jones/
Mastering C 2nd Edition Venugopal Digital Instant
Download
Author(s): Venugopal
ISBN(s): 9789332901278, 9332901279
Edition: 2
File Details: PDF, 84.04 MB
Year: 2015
Language: english
MASTERING C
Second Edition
About the Authors
K R VENUGOPAL is presently serving as Principal UVCE and Professor of Computer Science and Engineering.
He was the Chairman, Department of Electronics, Computer Science and Information Technology, and Principal
(Evening College) at University Visvesvaraya College of Engineering, Bangalore University, Bangalore,
India during 2000–2004. He has degrees in Electronics, Economics, Law, Journalism, Business Finance,
Communication, Industrial Relations, Public Relations and Computer Science. He obtained ME (CSE) from
Department of Computer Science and Automation at the Indian Institute of Science, Bangalore. He has
obtained PhD in Economics from Bangalore University and PhD in Computer Science from IIT, Madras. He
has authored and edited 51 books in Computer Science and Engineering and Economics. His areas of interest
include Optical Networks, Ad Hoc Networks, Data Mining and Digital Signal Processing. He has published more
than 400 papers in refereed International Journals and Conferences. Besides these, being a prolific inventor,
Dr Venugopal has filed 80 patents.
SUDEEP R PRASAD is presently serving as a Lead Architect, Philips Innovation Campus, Bangalore, India. He
obtained his degree in Computer Science and Engineering from University Visvesvaraya College of Engineering,
Bangalore University, Bangalore, India. He develops products in the Healthcare domain. His interests include
Software Engineering, Failure Analysis Techniques and Serviceability.
MASTERING
Second Edition
C
K R Venugopal
Principal and Professor
Department of Computer Science and Engineering
University Visvesvaraya College of Engineering
Bangalore University, Bangalore
Sudeep R Prasad
Lead Architect
Philips Innovation Campus, Bangalore
Information contained in this work has been obtained by McGraw Hill Education (India), from sources
believed to be reliable. However, neither McGraw Hill Education (India) nor its authors guarantee the accuracy
or completeness of any information published herein, and neither McGraw Hill Education (India) nor its
authors shall be responsible for any errors, omissions, or damages arising out of use of this information. This
work is published with the understanding that McGraw Hill Education (India) and its authors are supplying
information but are not attempting to render engineering or other professional services. If such services are
required, the assistance of an appropriate professional should be sought.
Typeset at Script Makers, 19, A1-B, DDA Market, Paschim Vihar, New Delhi 110 063 and printed at
Cover Designer:
Cover printed at:
Visit us at: www.mheducation.co.in
Dedicated to
Karthyayini V
Tejaswi V
Contents
Foreword xiii
Preface xv
1. Introduction 1
1.1 Computers 1
1.2 Classification of Computers 3
1.3 Numbers 3
1.4 System Software 7
1.5 Software Life Cycle 7
1.6 Algorithms 8
1.7 Algorithm Examples 8
1.8 Flowcharts 10
1.9 Pseudocode 12
1.10 Recursive Algorithms 13
1.11 Structured Programming 14
1.12 Hello World 14
1.13 Compilers 16
1.14 Operating Systems 17
1.15 Running C Programs 17
1.16 Linker 18
1.17 Preprocessor 19
1.18 Case Sensitiveness 19
1.19 Statement Separation 19
1.20 Standard Input and Output Devices 20
1.21 Popular Features of C 20
Exercises 21
3. Basic Input-Output 65
3.1 Introduction 65
3.2 Single Character Input-Output 65
3.3 String Input and Output 66
3.4 General Output 66
3.5 General Input 70
3.6 Types of Characters in Format Strings 72
3.7 scanf Width Specifier 74
3.8 Search Sets 74
3.9 Assignment Suppression Character 75
3.10 Format Specifiers for scanf 77
3.11 Input Fields for scanf 78
3.12 When scanf Stops Scanning 78
3.13 Programming Examples 79
Exercises 80
4. Control Structures 85
4.1 Introduction 85
4.2 if Statement 85
4.3 if-else Statement 88
4.4 Multi-way Decisions 92
4.5 Compound Statements 93
4.6 Loops 94
4.7 for Loop 95
4.8 while Loop 99
4.9 do-while Loop 101
4.10 break Statement 104
4.11 switch Statement 105
4.12 continue Statement 111
4.13 goto Statement 112
4.14 Programming Examples 113
Exercises 122
5. Functions 136
5.1 Introduction 136
5.2 Function main 136
5.3 Where are Functions Useful? 137
5.4 Functions Accepting More than One Parameter 144
5.5 User Defined and Library Functions 145
5.6 Concepts Associated with Functions (Review) 145
5.7 Function Parameters 149
5.8 Return Values 151
5.9 Recursion 156
5.10 Comparison of Iteration and Recursion 160
5.11 Variable Length Argument Lists 160
5.12 Programming Examples 162
Exercises 171
Contents ix
8. Pointers 231
8.1 Introduction 231
8.2 Definition and Uses of Pointers 232
8.3 Address Operator & 232
8.4 Pointer Variables 234
8.5 Dereferencing Pointers 237
8.6 void Pointers 240
8.7 Pointer Arithmetic 241
8.8 Pointers to Pointers 244
8.9 Pointers and Arrays 245
8.10 Passing Arrays to Functions 247
8.11 Pointers and Functions 250
8.12 Accessing Arrays Inside Functions 252
8.13 Pointers and Two-dimensional Arrays 254
8.14 Pointers and Three-dimensional Arrays 255
8.15 Array of Pointers 257
8.16 Pointer Constants 258
8.17 Pointers and Strings 260
8.18 Pointers in Standard String Library Functions 261
8.19 Two-dimensional Array of Characters 265
8.20 Array of Pointers to Strings 266
8.21 More String Library functions 268
8.22 Pointers to Functions 274
8.23 More Examples on Pointer Definitions 277
8.24 Pointers to Constant Objects 278
8.25 Constant Pointers 278
8.26 Programming Examples 279
Exercises 282
The study of Computer Science has gained tremendous importance alI over the world. Though the growth
has been phenomenal in developed countries; the non-availability of computer books at reasonable prices
is viewed as a major hurdle in the developing countries towards achieving a level of advancement in some
areas of computer technology akin to the developed countries. Hence, it is all the more desirable to encourage
indigenous writers who possess good knowledge of computers to publish their works so that quality books are
available to the readers at affordable prices.
This book, in particular, is well compiled and the authors have spent a great deal of effort and time in
writing it. Two aspects of the book impressed me; the first relates to the language used which is simple and
supplemented by well-drawn illustrations. The second aspect is that the book has a number of well designed
and tested examples to suit the beginners. It has excellent set of exercises and solutions are provided at the
end of the book.
The earlier books of Venugopal, Mastering C++ and Microprocessor x86 Programming have been well
received by the students and teachers of several Universities.
The book consists of 18 chapters including a chapter on Data Structures. A separate chapter on UNIX is
designed to highlight the features of C in the UNIX environment.
I am sure that this book will be of immense help to students of engineering, graduate degree and diploma
courses. I strongly recommend it to all those who seriously intend to pursue the art of programming with C.
Dr N R Shetty
Former President,
Indian Society for Technical Education (ISTE), New Delhi,
Former Vice Chancellor, Bangalore University,
Bangalore, India
Preface
Chapter Organization
This book consists of 18 chapters. These chapters present the features and syntax of C. A lucid explanation
of the fundamental concepts of C is given which is very useful for beginners. Numerous programming
examples on advanced data structures using C including linked lists, stacks, queues, sparse matrices, trees
and graphs have been illustrated. A detailed coverage of file manipulation, searching and sorting has been
presented. A special chapter on Unix has been provided to explain in depth the programming environment
of C in the Unix operating system.
Chapter 1 gives a brief introduction to the world of computers and programming. Chapter 2 discusses C
fundamentals. It includes the use of upper and lower case alphabets, digits 0-9 and special characters like
the blank, comma, semi-colon, etc. Identifiers are names of constants, variables and functions. Standard
identifiers are those that have a predefined meaning. For example, int is a standard identifier which refers
to the integer data type. The data types supported by C are simple data, string data, structured data and
xvi Preface
pointer data. Simple data types include char, int, float, double and their variants. The structured data types
comprise arrays and files.
Constants are those quantities whose value remains constant throughout the execution of the program.
These can be declared using the reserved word const. For example, the constant epsilon with a fixed value
of 3.512 can be defined as follows:
const float epsilon = 3.512;
Variables are identifiers whose value can change in the course of execution of a program. Each variable
has to be declared and the data type of the variable has to be specified. A typical variable declaration is
shown below.
int sum;
Expressions are made up of operands and are connected by operators. Expressions are either numerical
or boolean. Operands can be variables, constants or numbers. The value of an expression is obtained on its
evaluation. A numerical expression has a numerical value whereas, a boolean expression has a truth value -
either true or false. Statements are the executable entities in a program. There are two types of statements,
simple and structured. Simple statements include the assignment statement and function statement. Structured
statements include the compound statement, repetitive statements and conditional statements.
Chapter 3 deals with the input and output statements of C, i.e., scanf and printf. The scanf statement
is used to accept input from the input device. printf is used to display output on the output device. getchar
reads a character from the standard input device while putchar writes a character to the standard output
device.
Control structures are used to change the flow of control in a program. They are explained in Chapter 4.
The three types of control statements are Conditional Control Transfer, Repetitive, and Unconditional Control
Transfer. Conditional Control Transfer statements enable control transfer to different statements depending
on a condition. The if-then, if-then-else and case statements belong to this category. Repetitive
statements are used to execute a segment of a program repeatedly. This segment is called a loop. The loop
can be executed a fixed number of times as in the for loop or a variable number of times till a condition is
satisfied as in the while-do loops. The Unconditional Control Transfer statement is the goto statement.
As the name suggests, the execution of the goto statement results in unconditional transfer of control to the
target statement.
Chapter 5 deals with functions, the concepts of user defined functions, library functions and recursive
functions are illustrated here. Functions are subprograms used to segregate the different tasks of a program,
thus making it easier to understand. The process of invoking a subprogram is referred to as calling. Functions
may or may not return a value to the caller. Values are passed to the subprogram by means of arguments
supplied in the call to it. The subprogram has parameters corresponding to the arguments. A copy of the
argument is passed to the subprogram. An address of the argument is passed when the subprogram needs
to alter it. The subprograms can also be called recursively.
Chapter 6 illustrates the concepts and use of variables, its scope and extent. Scope is the region of source
code in which the declaration of an identifier is recognized. Extent is the time during which a variable retains its
state. Chapter 7 deals with arrays and strings. An array is a contiguous sequence of elements of the same data
type stored in a linear order. It is a structured data type. The items of an array are called the array elements and
every element has a unique index. Single-dimensional arrays are made up of a single list of elements and are
called vectors. Two-dimensional arrays are organized into rows and columns and are called matrices. Arrays
with three or more dimensions are called multi-dimensional arrays. A string is a collection of characters. The
natural representation of a string is a vector of type char. Each character is an element of the vector.
Chapter 8 explains the concepts of pointers. The various operations on pointers and the data structures
constructed using them are discussed. A singly linked list is a linear data structure that is made up of nodes
linked one after the other. Each node stores information and a link to the next node in the list. Chapter 9 explains
the structured data type. It is composed of elements of different data types. A structure could contain structure.
If so, it is said to contain a nested structure. Arrays of structures, structure pointers and the union data type
are illustrated in this chapter.
Preface xvii
Chapter 10 deals with files and their manipulation. Files are data structures stored in secondary storage.
Error handling in files are also discussed. Chapter 11 illustrates the concepts and library function of dynamic
memory allocation, for self-referential structure.
The efficiency of a program is limited by the data structures that are used to store the information required by
it. The basic data types are used to create advanced data structures to enable effective storage of information.
Some of these data structures are discussed in Chapter 12.
The doubly linked list is similar to the singly linked list except that it has an additional pointer pointing to
the previous element in the list. The circularly linked list is also like the singly linked list except that, the last
element in the list is connected back to the first element in the list. The queue is a linear FIFO (First In First Out)
structure where elements are inserted from one end and removed from the other. The element inserted first
is taken out first. The stack is another linear data structure in which the data items are entered and removed
in a LIFO (Last In First Out) manner. The entry and exit of elements are from the same end. In the linked list
each element has one successor. If an element is allowed to have more than one successor, the data structure
obtained is non-linear and is called a tree. In the binary tree, each node has a maximum of two successors.
The general tree has any number of successor nodes.
Chapter 13 explores the C language for programming in the UNIX operating system. File system and
associated Unix commands are explained here. System calls for Inter Process Communication, Process Control
are illustrated in this chapter. Library functions are listed in Chapter 14 while tips to structured programming
is discussed in Chapter 15. Chapter 16 gives a quick references to C-keywords, type comm, L-values and
R-values, storage class, Type specifies, limit.h and float.h, Input-output specifiers, preprogramming, Trigraph
sequences and ASCII table. Solution to selected Exercises and programming examples are provided at the
end of this book.
Acknowledgements
We owe a debt of gratitude to Prof. K. Venkatagiri Gowda, Shri. M.C. Jayadeva, Prof. S. Lakshmana Reddy,
Prof. N.R. Shetty, Prof. K. Mallikarjuna Chetty, Prof. H.N. Shivashankar, Prof. P. Sreenivasa Kumar, Prof. Kamala
Krithivasan, Prof. C. Sivarama Murthy, Prof. T. Basavaraju, Prof. M. Channa Reddy, Prof. B. Narayanappa, Prof
N.Srinivasan, Prof. M. Venkatachalappa, Prof. K.N. Krishnamurthy, for encouraging us to bring out this book
in the present form. We sincerely thank Sri. K.P. Jayarama Reddy, T.G. Girikumar, P. Palani, M.G. Muniyappa,
for their support in the preparation of this book.
We thank Prof. N.R. Shetty, President, ISTE and Former Vice Chancellor, Bangalore University, Bangalore for
his foreword to this book. We are grateful to Prof. G. Krishna, Prof. M. A.L. Thathachar, Prof. N. Viswanadham,
Prof. D.K. Subramanian, Prof. L.M. Patnaik, from the Department of Computer Science and Automation, Indian
Institute of Science, Bangalore for their suggestions and guidance in bringing out this book.
We express our gratitude to Sri. K. Narahari, Sri. P. Ananda Rao, Sri. N. Nagabhusan, Sri. Prabhakar Bhat,
Prof. K.V. Acharya, Sri. Khajampadi Subramanya Bhat, Sri. V. Nagaraj, Sri. Dinesh Kamath, Sri. D.M. Ravindra,
Sri. Jagadesh Karanath, Sri. N. Thippeswamy, Sri. H.K. Mohan Kumar, Sri. Sudhir, Sri. V. Manjunath, Sri. N.
Dinesh Hegde, Sri. Nagendra Prasad, Sri. Sripad, Sri. K. Thyagaraj, Smt. Savithri V, Smt. Karthyayini V and
Smt. Rukmini T. our well wishers for inspiring us to write this book.
We thank Prof. Rama Prasad, Mrs. Radha R. Prasad, Roopashree Sudeep, Veena R. Prasad, Surabhi
Prasad and Sunidhi Prasad for their support and encouragement.. We thank Prof. P. Deepa Shenoy, Sri.
K.B. Raja, Sri. T.R. Ramamohan, Sri. K. Suresh Babu, Sri. K.G. Srinivas, Smt. Vibha Lakshmikanatha, Smt.
D.N. Sujatha, Sri. K. Girish, Smt. J. Triveni, Smt SuraiyyaTaranum, Smt S.H. Manjula, Sri. G.S. Badrinath,
Sri. Chandrakant Naikodi, Sri. B. Aravinda, Radhika M.V., M. Vaidehi for their suggestions and support in
bringing out this book.
We are indebted to Tejaswi Venugopal, T. Shiva Prakash, T. Krishna Prasad and Lakshmi Priya K for their
help.
xviii Preface
We would like to thank the following reviewers for providing their valuable suggestions:
Pragya Jain Indian Institute of Technology Delhi, New Delhi
N K Kamila C V Raman College of Engineering, Bhubaneswar
S Kannimuthu Sri Krishna College of Engineering and Technology, Coimbatore
T V Gopal Anna University, Chennai
A Sharada G.Narayanamma Inst.of Tech & Science, Shaikpet, Hyderabad
The authors appreciate the suggestions from the readers and users of this book. Kindly communicate the
errors if any to the following email address: venugopalkr@gmail.com.
K R VENUGOPAL
SUDEEP R PRASAD
Publisher’s Note
McGraw Hill Education (India) invites suggestions and comments from you, all of which can be sent to
info.india@mheducation.com (kindly mention the title, author name and the Book ISBN in the subject line).
Piracy-related issues may also be reported.
Random documents with unrelated
content Scribd suggests to you:
Ambuscadoes of Salvages. {MN}
The 16. of June we fell with the river Patowomek: feare being gone,
and our men recovered, we were all content to take some paines, to
know the name of that seven mile broad river: for thirtie myles
sayle, we could see no inhabitants: {MN} then we were conducted
by two Salvages up a little bayed creeke, towards Onawmanient,
where all the woods were layd with ambuscado's to the number of
three or foure thousand Salvages, so strangely paynted, grimed and
disguised, shouting, yelling and crying as so many spirits from hell
could not have shewed more terrible. Many bravado's they made,
but to appease their fury, our Captaine prepared with as seeming a
willingnesse (as they) to incounter them. But the grazing of our
bullets upon the water (many being shot on purpose they might see
them) with the Ecco of the woods so amazed them, as downe went
their bowes and arrowes; (and exchanging hostage) James Watkins
was sent six myles up the woods to their Kings habitation. We were
kindly used of those Salvages, of whom we understood, they were
commanded to betray us, by the direction of Powhatan, and he so
directed from the discontents at James towne, because our Captaine
did cause them stay in their country against their wills.
A trecherous project.
A myne like Antimony. {MN-1}
An aboundant plenty of fish. {MN-2}
The 24 of July, Captaine Smith set forward to finish the discovery with
twelve men: their names were
Gentlemen. [III.60.]
Souldiers.
The wind being contrary caused our stay two or three dayes at
Kecoughtan: the King feasted us with much mirth, his people were
perswaded we went purposely to be revenged of the Massawomeks. {MN-
1} In the evening we fired a few rackets, which flying in the ayre so
terrified the poore Salvages, they supposed nothing unpossible we
attempted; and desired to assist us. The first night we anchored at Stingray
Isle. The next day crossed Patawomeks river, and hasted to the river Bolus.
We went not much further before we might see the Bay to divide in two
heads, and arriving there we found it divided in foure, all which we
searched so farre as we could sayle them. {MN-2} Two of them we found
inhabited, but in crossing the Bay, we incountred 7 or 8 Canowes full of
Massawomeks, we seeing them prepare to assault us, left our Oares and
made way with our sayle to incounter them, yet were we but five with our
Captaine that could stand, for within 2 dayes after we left Kecoughtan, the
rest (being all of the last supply) were sicke almost to death, untill they
were seasoned to the Country. Having shut them under our Tarpawling, we
put their hats upon stickes by the Barges side, and betwixt two hats a man
with two peeces, to make us seeme many, and so we thinke the Indians
supposed those hats to be men, for they fled with all possible speed to the
shore, and there stayed, staring at the sayling of our barge till we anchored
right against them. Long it was ere we could draw them to come unto us. At
last they sent two of their company unarmed in a Canow, the rest all
followed to second them if neede required. These two being but each
presented with a bell, brought aboord all their fellowes, presenting our
Captaine with venison, beares flesh, fish, bowes, arrowes, clubs, targets,
and beares-skinnes. We understood them nothing at all, but by signes,
whereby they signified unto us they had beene at warres with the
Tockwoghes, the which they confirmed by showing us their greene wounds,
but the night parting us, we imagined they appointed the next morning to
meete, but after that we never saw them.
Our order was daily to have Prayer, with a Psalme, at which solemnitie
the poore Salvages much wondred, our Prayers being done, a while they
were busied with a consultation till they had contrived their businesse.
[III.61.] {MN} Then they began in a most passionate manner to hold up
their hands to the Sunne, with a most fearefull song, then embracing our
Captaine, they began to adore him in like manner: though he rebuked them,
yet they proceeded till their song was finished: which done with a most
strange furious action, and a hellish voyce, began an Oration of their loves;
that ended, with a great painted Beares skin they covered him: then one
ready with a great chayne of white Beads, weighing at least six or seaven
pound, hung it about his necke, the others had 18 mantels, made of divers
sorts of skinnes sowed together; all these with many other toyes they layd at
his feete, stroking their ceremonious hands about his necke for his Creation
to be their Governour and Protector, promising their aydes, victualls, or
what they had to be his, if he would stay with them, to defend and revenge
them of the Massawomeks. But we left them at Tockwhogh, sorrowing for
our departure, yet we promised the next yeare againe to visit them. Many
descriptions and discourses they made us, of Atquanachuck, Massawomek,
& other people, signifying they inhabit upon a great water beyond the
mountaines, which we understood to be some great lake, or the river of
Canada: and from the French to have their hatchets and Commodities by
trade. These know no more of the territories of Powhatan, then his name,
and he as little of them, but the Atquanachuks are on the Ocean Sea.
Pawtuxunt, R.
Thus having sought all the inlets and rivers worth noting, we returned
to discover the river of Pawtuxunt; these people we found very tractable,
and more civill then any, we promised them, as also the Patawomeks to
revenge them of the Massawomeks, but our purposes were crossed.
Rapahanock, R.
The exceeding love of the Salvage Mosco. {MN-1}
Our fight with the Rapahanocks. {MN-2}
Upon the alarum by that we had recovered our armes, there was about
an hundred nimble Indians skipping from tree to tree, letting fly their
arrows so fast as they could: the trees here served us for Baricadoes as well
as they. But Mosco did us more service then we expected, for having shot
away his quiver of Arrowes, he ran to the Boat for more. The Arrowes of
Mosco at the first made them pause upon the matter, thinking by his bruit
and skipping, there were many Salvages. About halfe an houre this
continued, then they all vanished as suddainly as they approached. Mosco
vanished as suddenly as they approached. Mosco followed them so farre as
he could see us, till they were out of sight. {MN-1} As we returned there
lay a Salvage as dead, shot in the knee, but taking him up we found he
[III.63] had life, which Mosco seeing, never was Dog more furious against
a Beare, then Mosco was to have beat out his braines, so we had him to our
Boat, where our Chirurgian who went with us to cure our Captaines hurt of
the Stingray, so dressed this Salvage that within an houre after he looked
somewhat chearefully, and did eate and speake. In the meane time we
contented Mosco in helping him to gather up their arrowes, which were an
armefull, whereof he gloried not a little. Then we desired Mosco to know
what he was, and what Countries were beyond the mountaines; the poore
Salvage mildly answered, he and all with him were of Hasinninga, where
there are three Kings more, like unto them, namely the King of Stegora, the
King of Tauxuntania, and the King of Shakahonea, that were come to
Mohaskahod, which is onely a hunting Towne, and the bounds betwixt the
Kingdome of the Mannahocks, and the Nandtaughtacunds, but hard by
where we were. We demanded why they came in that manner to betray us,
that came to them in peace, and to seeke their loves; he answered, they
heard we were a people come from under the world, to take their world
from them. {MN-2} We asked him how many worlds he did know, he
replyed, he knew no more but His relation of that which was under the skie
that covered him, which were the Powhatans, with the Monacans, and the
Massawomeks, that were higher up in the mountaines. Then we asked him
what was beyond the mountaines, he answered the Sunne: but of any thing
els he knew nothing; because the woods were not burnt. [FN] These and
many such questions wee demanded, concerning the Massawomeks, the
Monacans, their owne Country, and where were the Kings of Stegora,
Tauxsintania, and the rest. The Monacans he sayd were their neighbours
and friends, and did dwell as they in the hilly Countries by small rivers,
living upon rootes and fruits, but chiefly by hunting. The Massawomeks did
dwell upon a great water, and had many boats, & so many men that they
made warre with all the world. For their Kings, they were gone every one a
severall way with their men on hunting: But those with him came thither a
fishing till they saw us, notwithstanding they would be altogether at night at
Mahaskahod. For his relation we gave him many toyes, with perswasions to
goe with us, and he as earnestly desired us to stay the comming of those
Kings that for his good usage should be friends with us, for he was brother
to Hasinninga. But Mosco advised us presently to be gone, for they were all
naught, yet we told him we would not till it was night. All things we made
ready to entertain what came, & Mosco was as diligent in trimming his
arrowes. The night being come we all imbarked, for the river was so
narrow, had it beene light the land on the one side was so high, they might
have done us exceeding much mischiefe. All this while the K. of
Hasinninga was seeking the rest, and had consultation a good time what to
doe. But by their espies seeing we were gone, it was not long before we
heard their arrowes dropping on every side the Boat; we caused our
Salvages to call unto them, but such a yelling & hallowing they made that
they heard nothing, but now and then a peece, ayming so neare as we could
where we heard the most voyces. More then 12 myles they followed us in
this manner; then the day appearing, we found our selves in a broad Bay,
out of danger of their shot, where wee came to an anchor, and fell to
breakfast. Not so much as speaking to them till the Sunne was risen; being
well refreshed, we untyed our Targets that covered us as a Deck, and all
shewed our selves with those shields on our armes, and swords in our
hands, and also our prisoner Amoroleck; a long discourse there was betwixt
his Countrimen and him, how good wee were, how well wee used him, how
wee had a Patawomek with us, loved us as his life, that would have slain
him had we not preserved him, and that he should have his libertie would
they be but friends; and to doe us any hurt it was impossible. {MN-3} Upon
this they all hung their Bowes and Quivers upon the trees, and one came
swimming aboord us with a bow tyed on his head, and another with a
Quiver of Arrowes, which they delivered our Captaine as a present, the
Captaine having used them so kindly as he could, told them the other three
Kings should doe the like, and then the great King of our world should be
their friend, whose men we were. It was no sooner demanded but
performed, so upon a low Moorish poynt [III.64.] of Land we went to the
shore, where those foure Kings came and received Amoroleck: nothing they
had but Bowes, Arrowes, Tobacco-bags, and Pipes: what we desired, none
refused to give us, wondering at every thing we had, and heard we had
done: our Pistols they tooke for pipes, which they much desired, but we did
content them with other Commodities, and so we left foure or five hundred
of our merry Mannahocks, singing, dauncing, and making merry, and set
sayle for Moraughtacund.
In our returnes we visited all our friends, that rejoyced much at our
Victory against the Mannahocks, who many times had Warres also with
them, but now they were friends, and desired we would be friends with the
Rapahanocks, {MN-1} as we were with the Mannahocks. Our Captaine told
them, they had twise assaulted him that came onely in love to doe them
good, and therefore he would now burne all their houses, destroy their
corne, and for ever hold them his enemies, till they made him satisfaction;
they desired to know what that should be: he told them they should present
him the Kings Bow and Arrowes, and not offer to come armed where he
was; that they should be friends with the Moraughtacunds his friends, and
give him their Kings sonne in pledge to performe it, and then all King
James his men should be their friends. Upon this they presently sent to the
Rapahanocks to meete him at the place where they first fought, where
would be the Kings of Nantautacund and Pissassac: which according to
their promise were there so soone as we; where Rapahanock presented his
Bow and Arrowes, and confirmed all we desired, except his sonne, having
no more but him he could not live without him, but in stead of his sonne he
would give him the three women Moraughtacund had stolen. This was
accepted: and so in three or foure Canowes, so many as could went with us
to Moraughtacund, where Mosco made them such relations, and gave to his
friends so many Bowes and Arrowes, that they no lesse loved him then
admired us. The 3 women were brought our Captaine, to each he gave a
chayne of Beads: and then causing Moraughtacund, Mosco, and
Rapahanock stand before him, bid Rapahanock take her he loved best, and
Moraughtacund chuse next, & to Mosco he gave the third. Upon this away
went their Canowes over the water, to fetch their venison, and all the
provision they could, and they that wanted Boats swam over the river: the
darke commanded us then to rest. The next day there was of men, women,
and children, as we conjectured, six or seaven hundred, dauncing, &
singing, and not a Bow nor Arrow seene amongst them. Mosco changed his
name Uttasantasough, which we interpret Stranger, for so they call us. All
promising ever to be our friends, and to plant Corne purposely for us; and
we to provide hatchets, beads, and copper for them, we departed, giving
them a Volley of shot, and they us as loud shouts and cryes as their
strengths could utter. {MN-2} That night we anchored in the river of
Payankatank, and discovered it so high as it was navigable, but the people
were most a hunting, save a few old men, women, and children, that were
tending their corne, of which they promised us part when we would fetch it,
as had done all the Nations where ever we had yet beene.
A.D. 1608.
Chapter VII.
A Virginia Maske.
In a fayre plaine field they made a fire, before which, he sitting upon a
mat, suddainly amongst the woods was heard such a hydeous noise and
shreeking, that the English betooke themselves to their armes, and seized on
two or three old men by them, supposing Powhatan with all his power was
come to surprise them. But presently Pocahontas came, willing him to kill
her if any hurt were intended, and the beholders, which were men, women,
and children, satisfied the Captaine there was no such matter. Then
presently they were presented with this anticke; thirtie young women came
naked out of the woods, onely covered behind and before with a few greene
leaves, their bodies all painted, some of one colour, some of another, but all
differing, their leader had a fayre payre of Bucks hornes on her head, and an
Otters skinne at her girdle, and another at her arme, a quiver of arrowes at
her backe, a bow and arrowes in her hand; the next had in her hand a sword,
another a club, another a pot-sticke; all horned alike: the rest every one with
their severall devises. These fiends with most hellish shouts and cryes,
rushing from among the trees, cast themselves in a ring about the fire,
singing and dauncing with most excellent ill varietie, oft falling into their
infernall passions, and solemnly againe to sing and daunce; having spent
neare an houre in this Mascarado, as they entred in like manner they
departed.
Thus did they shew their feats of armes, and others art in dauncing:
Some other us'd there oaten pipe, and others voyces chanting.
The next day came Powhatan. Smith delivered his [III.68.] message of
the presents sent him, and redelivered him Namontack he had sent for
England, desiring him to come to his Father Newport, to accept those
presents, and conclude their revenge against the Monacans. Whereunto this
subtile Savage thus replyed.
Powhatans answer.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com