(Ebooks PDF) Download Computer Programming - Ebook PDF Full Chapters
(Ebooks PDF) Download Computer Programming - Ebook PDF Full Chapters
com
https://ebooksecure.com/download/computer-
programming-ebook-pdf/
http://ebooksecure.com/product/python-programming-an-
introduction-to-computer-science-3rd-edition-by-john-zelle-ebook-
pdf/
http://ebooksecure.com/product/ebook-pdf-programming-language-
pragmatics-4th-edition/
https://ebooksecure.com/download/programming-in-c-ebook-pdf/
http://ebooksecure.com/product/ebook-pdf-computer-systems-5th-
edition/
Computer Systems 5th Edition (eBook PDF)
http://ebooksecure.com/product/computer-systems-5th-edition-
ebook-pdf/
http://ebooksecure.com/product/ebook-pdf-computer-networks-6th-
edition/
http://ebooksecure.com/product/ebook-pdf-linear-programming-and-
resource-allocation-modeling/
http://ebooksecure.com/product/ebook-pdf-murachs-c-programming-
by-joel-murach/
http://ebooksecure.com/product/ebook-pdf-matlab-programming-for-
engineers-6th-edition/
As per
JNTU-Kakinada
Syllabus Regulation
2016
Computer
Programming
About the Author
E Balagurusamy, former Vice Chancellor, Anna University, Chennai and Member, Union Public Service
Commission, New Delhi, is currently the Chairman of EBG Foundation, Coimbatore. He is a teacher, trainer,
and consultant in the fields of Information Technology and Management. He holds an ME (Hons) in Electrical
Engineering and PhD in Systems Engineering from the Indian Institute of Technology (IIT) Roorkee. His
areas of interest include Object-Oriented Software Engineering, E-Governance: Technology Management,
Business Process Re-engineering, and Total Quality Management.
A prolific writer, he has authored a large number of research papers and several books. His best-selling
books, among others include:
∑ Programming in ANSI C, 7/e
∑ Fundamentals of Computers
∑ Computing Fundamentals and C Programming
∑ Programming in Java, 5/e
∑ Programming in BASIC, 3/e
∑ Programming in C#, 3/e
∑ Numerical Methods
∑ Reliability Engineering
∑ Introduction to Computing and Problem Solving using Python, 1e
A recipient of numerous honors and awards, E Balagurusamy has been listed in the Directory of Who's
Who of Intellectuals and in the Directory of Distinguished Leaders in Education.
As per
JNTU-Kakinada
Syllabus Regulation
2016
Computer
Programming
E Balagurusamy
Chairman
EBG Foundation
Coimbatore
Computer Programming
Copyright © 2017 by McGraw Hill Education (India) Private Limited.
No part of this publication may be reproduced or distributed in any form or by any means, electronic, mechanical, photocopying,
recording, or otherwise or stored in a database or retrieval system without the prior written permission of the publishers.
The program listings (if any) may be entered, stored and executed in a computer system, but they may not be reproduced for
publication.
This edition can be exported from India only by the publishers,
McGraw Hill Education (India) Private Limited
Print Edition:
ISBN-13: 978-93-5260-388-6
ISBN-10: 93-5260-388-5
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 The Composers, 260, C.A. Apt., Paschim Vihar, New Delhi 110 063 and printed at
Cover Printer:
Preface xiii
Roadmap to the Syllabus xvi
Answers 1.29
Review Questions 1.29
Answers 4.48
Review Questions 4.49
Debugging Exercises 4.51
Programming Exercises 4.51
Answers 7.40
Review Questions 7.40
Debugging Exercises 7.42
Programming Exercise 7.42
INTRODUCTION
Computers plays an increasing important role in today’s world and a sound knowledge of computers has
become indispensable for anyone who seeks employment not only in the area of IT but also in any other
field as well. Computer programming is dedicated to the understanding of computer language, and writing
and testing of programs that computers’ follow to perform their functions. The programs are created using
programming languages and C is the most prevalent, efficient and compact programming language. C
combines the features of a high-level language with the elements of the assembler and is thus close to both
man and machine. The growth of C during the last few years has been phenomenal. It has emerged as the
language of choice for most applications due to its speed, portability and compactness of code. Thus, many
institutions and universities in India have introduced a subject covering Computer Programming.
This book is specially designed for first-year students of Jawaharlal Nehru Technological University
Kakinada (JNTU K) and would enable them to master the necessary skills for programming with C language.
The text has been infused with numerous examples and case studies to empower the learner. Furthermore, the
book also covers design and implementation aspect of data structures using standard ANSI C programming
language.
SIGNIFICANT FEATURES
∑ New! Completely in sync with the syllabus of JNTU Kakinada (2016 Regulation)
∑ New! Incorporates all the features of ANSI C that are essential for a C programmer.
∑ New! Solutions to latest 2015 (Nov/Dec) and 2016 (May) JNTU Kakinada question paper is placed
at the end of the book (All 4 sets)
∑ New! 149 Multiple Choice Questions incorporated at the end of each chapters help students tests
their conceptual understanding of the subject
∑ 22 Case Studies in relevant chapters with stepwise solution to demonstrate real-life applications
∑ New! Updated information on C99/C11 features
∑ New! Topics like ANSI C library functions, Negation, Swapping Values, Recursion v/s Iteration are
covered in detail
∑ Learning by example approach ensures smooth and successful transition from a learner to a skilled
C programmer
∑ Enhanced student-friendly chapter design including Outline, Introduction, Section-end Solved
Programs, Case Studies, Key Terms, Just Remember, Multiple Choice Questions, Review Questions,
Debugging Exercises, Programming Exercises
∑ Special box feature highlighting supplementary information that complements the text.
xiv Preface
PEDAGOGICAL FEATURES
∑ 134 Solved C Programs demonstrate the general principles of good programming style
∑ 171 Review Questions helps in testing conceptual understanding
∑ 28 Debugging Exercise helps in participating coding contests
∑ 179 Programming Exercises simulate interest to practice programming applications
CHAPTER ORGANIZATION
The content is spread across 9 chapters. Chapter 1 introduces computer systems, programming languages
and environment, software development method, and algorithms. Chapter 2 gives an overview of C and
explaining the keywords, identifiers, constants, variables, data types and various case studies on these.
Chapters 3 comprises of decision-making, branching and looping methods. Chapter 4 covers the functions
which are used in C language. Chapter 5 focuses on arrays while Chapter 6 deals with strings. Different
types of pointers and its types are discussed in Chapter 7. Chapter 8 presents structures and unions while
Chapter 9 covers file types and their management. Appendix 1 covers C99/C11 features in detail. In addition
to all this, Solved Question Papers of Nov/Dec 2015 (4 sets) and May 2016 (4 sets) are also given in this
book.
CD RESOURCES
The supplementary CD provided along with the book would help the students master programming language
and write their own programs using Computer programming concepts and data structures. The CD comprises
of the following resources:
∑ New! 2012, 2013, 2014, Jan/Feb 2015 solved question papers
∑ New! Lab Programs as per the new syllabus
∑ Two major programming projects—Inventory and Record Entry & two mini projects—Linked List
and Matrix Multiplication
∑ 100 Programming Exercises and 200 Objective Type Questions aligned as per the new syllabus
∑ 5 Solved Model Question Papers
∑ 79 Additional Solved Programs
∑ Additional content on Matrix Operation
ACKNOWLEDGEMENTS
A number of reviewers took pains to provide valuable feedback for the book. We are grateful to all of them
and their names are mentioned as follows:
S. Krishna Rao Sir CR Reddy College of Engineering, Eluru, Andhra Pradesh
Narasimha Rao Kandula Vishnu Institute of Technology, Bhimavaram, Andhra Pradesh
K. Phani Babu, Chundru Raja Ramesh Sri Vasavi Engineering College, Tadepalligudem, Andhra
Pradesh
Preface xv
E Balagurusamy
Publisher’s Note
McGraw Hill Education (India) invites suggestions and comments, all of which can be sent to
info.india@mheducation.com (kindly mention the title and author name in the subject line).
Piracy-related issues may also be reported.
Another random document with
no related content on Scribd:
you will yet be a great general over men when you grow up to be a
man yourself.” A few years ago an aged man entered Mr. Kelly’s
crowded office at 117 Nassau street, and sent in his name with the
rest. When his turn came he was admitted. “Do you not know me,
Mr. Kelly?” said the old man. “No,” was the reply, “I do not recall
you.” “Do you remember when you were a boy the fight you had
with that big swarthy fellow in Creamer’s factory yard, when one of
the men told you you would one day become a great general over
men? Well, I was that very man, and didn’t I tell the truth, sir?” Mr.
Kelly remembered the occurrence and his visitor too, immediately,
whom he had not seen for many years, and laughed heartily over
the reminiscence of his youth as he shook the old man’s hand.
He worked industriously at his new occupation, and is said to have
displayed mechanical skill of no mean order. In due time he set up in
business for himself, made friends rapidly, and secured an excellent
line of custom. He became a prosperous young man, and was
remarked upon for sobriety, modesty of deportment and attention to
business. It was not long before he found himself able to branch out
on a more extensive scale, for his friends were numerous and willing
to lend him a helping hand when the needs of his business made it
expedient to ask credit. While yet a very young man, his success
was sufficiently assured to justify him in establishing a soap-stone
and grate factory at 40 Elizabeth street, and he also opened an
office where he took business orders, in a frame building on Broome
street, next door to the church over which Dr. Maclay at that time
presided, and of which Dr. Cohen, in subsequent years, became the
pastor. Among his customers were Thomas O’Conor, father of
Charles O’Conor, the lawyer; John A. Dix, afterward Governor of New
York; Horace F. Clark, and many other influential people. John Kelly
had now become a prosperous man. His first care was for the
beloved mother who had shaped the days of his youth in the ways
he should walk, but who departed this life in the most edifying
sentiments of piety when he was quite a young man, scarcely
twenty-one years of age. His next care was for his younger brother
and five sisters, towards whom he acted as a father, and for whose
education and welfare he was now able to provide in a suitable
manner. His own early struggles for education had taught him to
appreciate it highly in others, and he secured to his brother and
sisters advantages which disciplined their youthful years and
qualified them for the duties of after life. Later on he took his
brother into partnership with him, but that brother and all his sisters,
save one, Mrs. Thomas, who lives near Mexico, in Oswego County,
New York, died many years ago. Mr. Kelly, as already mentioned,
owed to his mother’s care the blessing of right training in his youth,
and the consequent formation of his character in the practice of the
Christian virtues. An old New Yorker who knew his mother, has told
the writer she was a thorough disciplinarian, and taught her children
to love the truth in all things, and that the beginning of wisdom is
the fear of the Lord. His mother died before her son’s brilliant
success began; she who had equipped him for the battle stayed not
to enjoy its triumphs.
At this period of his life John Kelly had not a dream of ever
entering upon a political career. In this respect he resembled another
distinguished New York statesman, the late Daniel S. Dickinson, who
began life as a mechanic, became a woollen manufacturer, and,
beyond being an earnest Democrat, passed several years with no
inclination whatever for the field of politics. It was true, however,
that even from his boyhood John Kelly displayed rare capacity to
lead others, and he now found himself, in spite of preoccupation in
the manufacturing business, constantly called on by neighbors
seeking his advice and instinctively following him. He was once
asked by a newspaper reporter if he ever sowed wild oats in his
youth. “That may be called a leading question,” he replied; “I was in
a gambling-house once in my life, but it was on business—not to
gamble. And I never was in a house of assignation in my life. I don’t
know what the inside of such a house is.” “It is charged against you,”
the reporter said, “that you attend church very regularly, and that
you do it for effect.” “Well,” Mr. Kelly said, “that’s a queer charge to
make against any one. I had a good careful mother who sent me to
the Sunday-school regularly. I have been to church regularly ever
since. Under such training, no doubt, I ought to be a great deal
better Christian than I am. I suppose I have been very wicked
sometimes, and yet I can’t recall any time when I have been wilfully
bad.”[3]
“During Tweed’s ascendancy in New York politics,” said the well
informed Utica editor, in the article already quoted from, “Mr. Kelly
retired from Tammany Hall. Between him and Tweed the bitterest
hostility always existed. It is pleasant to believe that Kelly’s superior
virtue made him distasteful to the burly champion of corruption. But
that does not account for their feud. During the glow of his guilty
glory, Tweed’s ambition was to secure the endorsement of men of
unimpeachable character. By turning back a page in political history,
we might show how well he succeeded. But he could not make
terms with John Kelly, for Mr. Kelly would accept no position but that
of ruler. William M. Tweed swore a solemn oath that John Kelly never
should control Tammany Hall—and we all know what came of it.”
Shortly before his death, while he was a prisoner in Ludlow Street
Jail, Tweed was interviewed by a New York Herald reporter, and gave
with undeserved freedom his impressions of the leading men he had
known in politics. “Whom,” said the reporter, “do you regard as the
most successful city politician of New York in the thirty years of your
experience?” “John Kelly,” said Tweed. “He was always a plodder—
always saving something and learning something. He stood well with
the Church—rather a high class man in the Church—and got his
support there. I never did but one thing for him; twenty years ago I
helped him beat Walsh for Congress.” “When you came to politics,”
asked the reporter, “did you ever remotely entertain the idea of such
proportions as the Ring afterwards assumed?” “No,” said Tweed.
“The fact is, New York politics were always dishonest—long before
my time. There never was a time when you couldn’t buy the Board
of Aldermen, except now. If it wasn’t for John Kelly’s severity, you
could buy them now.”[4]
The reporter of the World, with an odd sort of unconscious humor
in his interview, not unlike Tweed’s commercial valuation of piety as
an investment, so naively suggested by the words, “rather a high
class man in the Church,” bluntly told Mr. Kelly that it was not only
complained against him that he attended Church, but that he
aggravated the matter by attending it very regularly. No wonder
Kelly should have thought that a “queer charge” to make against
him.
An old citizen of New York, acquainted with him from his youth, is
authority for the statement that Kelly was as fully a leader of the
young men of his neighborhood when he first grew up, as he
became of the Tammany Democrats at a later day. He was of a
social disposition, and while always temperate in his habits, he
would go occasionally, after getting through with his day’s work, to
the Ivy Green, a famous hostelry in those days in Elm street, kept by
Malachi Fallon, who went to California in 1849, and which was
afterward kept by John Lord. The Ivy Green, like Stonehall’s in
Fulton Street, was a popular gathering place for politicians and their
friends. John Clancy, Peter B. Sweeny, Matthew Brennan, David C.
Broderick, and many other active young fellows, who afterwards
became prominent in politics, were in the habit of visiting the Ivy
Green, and John Kelly would sometimes call there for a chat with the
boys. Less frequently, but once in a great while, Kelly and Broderick,
the latter being a warm friend of Kelly’s, also dropped in at the
Comet, another place of resort of the same kind, kept by Manus
Kelly on Mott street, where they would meet the same jolly crowd
that frequented the Ivy Green, and whither came quite often the
celebrated Tom Hyer, Yankee Sullivan, and other champions of the
manly art of self-defence. “But,” said the writer’s informant, “none of
these fighting men ever intermeddled with Kelly or Broderick. The
best of them would have had his hands full if he had done so.” Poor
Broderick, who afterwards became a United States Senator from
California, finally fell in a duel in that State.
Young Kelly was very fond of athletic sports. He was a good
oarsman, was often on the water, and pulled a shell with the best.
There was a crack company called the Emmet Guards in New York,
when Kelly was a young man. He was first lieutenant of this
company during the captaincy of James McGrath, upon whose death
he was elected captain, and being fond of military matters, he
brought his company to a high state of efficiency. Captain Kelly
retained the command until he was elected Alderman in 1853. The
Old Volunteer Fire Department was then in its zenith. He was a
member of it, and one of its leading spirits. While he was in the Fire
Department an incident occurred which has exercised a restraining
influence over him through life. At a fireman’s parade, while he was
in line of March, a burly truckman attempted to drive through the
ranks. Kelly was near the horses and kept them back. The driver
sprang to the ground, and made a furious attack on the young fire
laddie. He received in return a blow from Kelly’s fist which ended the
battle by rendering the truckman insensible. He was borne to a
neighboring doctor’s office, and was resuscitated with much
difficulty. For two or three days the truckman was disabled. Kelly,
who had acted strictly on the defensive, nevertheless was greatly
distressed for his antagonist. He had been unaware of the almost
phenomenal force of his own blow, and his tremendous hitting
power was first fully revealed to him by the effect of his fist on the
truckman. To one of his intimate friends he declared that he deeply
regretted this affair, but that, perhaps, it had served a good purpose,
for he was now unalterably resolved never again as long as he lived
to strike any man with all his force, no matter what the provocation
might be.
His herculean strength and known courage have sometimes been
seized upon by opponents for disparaging paragraphs in the
newspapers, just as the combativeness of Andrew Jackson, in his
earlier days, was often commented upon to his detriment. But as
there was nothing mean or domineering in the temper of Jackson,
any more than there is in Kelly, only the high and unconquerable
spirit that felt “the rapture of the strife,” Old Hickory did not suffer in
popular esteem on account of his early scrimmages. In 1828 Dr.
James L. Armstrong, one of his old opponents in Tennessee,
gathered up and published as a political nosegay a list of nearly one
hundred pistol, sword and fist fights in which Jackson had been
engaged between the ages of 23 and 60. Jackson replied to this by
promising to cudgel Armstrong on sight. The courage of some men
is so conspicuous that they are recognized at once as heroes. In his
admirable life of Nelson, Southey relates many acts of apparently
reckless intrepidity on the part of the hero of Trafalgar; but, as it
was with Jackson, so was it with Nelson, his conduct was not the
result of real recklessness; it was not the courage of the bull-dog,
the maddened bull or the enraged lion, but rather the play of a spirit
which rose with the occasion, the exhibition of a will not to be
appalled by dangers common natures shrink from. It was such a
courage the poet had in view when he made Brutus say—
FOOTNOTES:
[1] Utica Observer, Sept. 16, 1879.
[2] Utica Observer, Sept. 16, 1879.
[3] New York World, Oct. 18, 1875.
[4] New York Herald October 26, 1877.
[5] Clarke’s Lives of the Deceased Bishops, vol. ii., pp. 111-112.
CHAPTER III.
THE GREAT COMMONER OF GEORGIA—SPEECH OF A. H. STEPHENS
—HENRY A. WISE OF ACCOMAC—HENRY WINTER DAVIS—HIS
CHARACTER—JOHN KELLY MEETS HIM IN DEBATE—KELLY’S
STANDING IN CONGRESS—HIS CHARACTER DESCRIBED BY
LEWIS CASS, BY A. H. STEPHENS, AND JAMES GORDON
BENNETT—THE ERA OF KNOW-NOTHINGISM—KELLY’S PART IN
ITS OVERTHROW.
The future historian of the United States, when he comes to treat
of that extraordinary movement in American politics called Know-
Nothingism, will not do justice to the subject unless he assigns the
post of honor in the work of its overthrow as a national organization
to Stephens of Georgia, Wise of Virginia, and Kelly of New York. A
glance at the great work accomplished by these three men is all that
can be attempted in this memoir.
“True Americanism,” said Alexander H. Stephens in his memorable
Anti-Know-Nothing contest in Georgia in 1855, “as I have learned it,
is like true Christianity—disciples in neither are confined to any
nation, clime or soil whatever. Americanism is not the product of the
soil; it springs not from the land or the ground; it is not of the earth,
or earthy; it emanates from the head and the heart; it looks upward,
and onward and outward; its life and soul are those grand ideas of
government which characterize our institutions, and distinguish us
from all other people; and there are no two features in our system
which so signally distinguish us from all other nations as free
toleration of religion and the doctrine of expatriation—the right of a
man to throw off his allegiance to any and every other State, prince
or potentate whatsoever, and by naturalization to be incorporated as
a citizen into our body politic. Both these principles are specially
provided for and firmly established in our Constitution. But these
American ideas which were proclaimed in 1789 by our ‘sires of ’76’
are by their ‘sons’ at this day derided and scoffed at. We are now
told that ‘naturalization’ is a ‘humbug,’ and that it is an impossibility.
So did not our fathers think. This ‘humbug’ and ‘impossibility’ they
planted in the Constitution; and a vindication of the same principle
was one of the causes of our second war of independence. Let no
man, then, barely because he was born in America, presume to be
imbued with real and true ‘Americanism,’ who either ignores the
direct and positive obligations of the Constitution, or ignores this,
one of its most striking characteristics. An Irishman, a Frenchman, a
German, or Russian, can be as thoroughly American as if he had
been born within the walls of the old Independence Hall itself. Which
was the ‘true American,’ Arnold or Hamilton? The one was a native,
the other an adopted son.”[6]
Mr. Stephens had declined to be a candidate for Congress in 1855,
and the Know-Nothings taunted him with cowardice, because, they
said, if he should run he knew he was doomed to defeat. His letter
on Know-Nothingism to Judge Thomas, from which the preceding
extract is quoted, was denounced furiously by the Know-Nothings,
who loudly predicted that the letter would prove to be his political
winding-sheet. These taunts were published throughout the country,
and induced Mr. Stephens to change his mind, and re-enter the field
as a candidate for the Thirty-fourth Congress. In a speech at
Augusta, Georgia, in which he announced this purpose, he said: “I
have heard that it has been said that I declined being a candidate,
because a majority of the district were Know-Nothings, and I was
afraid of being beaten. Now, to all men who entertain any such
opinion of me, I wish to say that I was influenced by no such
motive. I am afraid of nothing on earth, or above the earth, or under
the earth, except to do wrong—the path of duty I shall ever
endeavor to travel, ‘fearing no evil,’ and dreading no consequences.
Let time-servers, and those whose whole object is to see and find
out which way the popular current for the day and hour runs, that
they may float upon it, fear or dread defeat if they please. I would
rather be defeated in a good cause than to triumph in a bad one. I
would not give a fig for a man who would shrink from the discharge
of duty for fear of defeat. All is not gold that glitters, and there is no
telling the pure from the base until it is submitted to the fiery ordeal
of the crucible and the furnace. The best test of a man’s integrity
and the soundness of his principles is the furnace of popular opinion,
and the hotter the furnace the better the test. I have traveled from a
distant part of the State, where I first heard these floating taunts of
fear—as coming from this district—for the sole and express purpose
of announcing to you, one and all, and in this most public way to
announce to the other counties, without distinction of party, that I
am again a candidate for Congress in this district. The
announcement I now make. My name is hereby presented to the
district; not by any convention under a majority or a two-third rule—
but by myself.
“I know, fellow-citizens, that many of you differ with me upon
those exciting questions which are now dividing—and most
unhappily, too, as I conceive—dividing our people. It is easy to join
the shouts of the multitude, but it is hard to say to a multitude that
they are wrong. I would be willing to go into one of your Know-
Nothing lodges or councils, where every man would be against me,
if I could be admitted without first having to put myself under
obligations never to tell what occurred therein, and there speak the
same sentiments that I shall utter here this night. Bear with me,
then, while I proceed.[7] It is to exhibit and hold up even to
yourselves the great evils and dangers to be apprehended from this
‘new,’ and, I think, most vicious political ‘monster,’ that I would
address you; and against the influences of which I would warn and
guard you, as well as the rest of our people. While the specious
outside title of the party is that ‘Americans shall rule America,’ when
we come to look at its secret objects as they leak out, we find that
one of its main purposes is, not that ‘Americans shall rule America,’
but that those of a particular religious faith, though as good
Americans as any others, shall be ruled by the rest.
“But it is said the ‘proscription’ is not against a religious but a
political enemy, and the Roman Church is a political party, dangerous
and powerful. Was a bolder assertion, without one fact to rest upon,
ever attempted to be palmed off upon a confiding people? The
Roman Church a political party! Where are its candidates? How
many do they number in our State Legislatures or in Congress? What
dangers are they threatening, or what have they ever plotted? Let
them be named. Was it when Lord Baltimore, a Catholic, established
the colony of Maryland, and for the first time on this continent
established the principle of free toleration in religious worship? Was
it when Charles Carroll, a Catholic, signed the Declaration of
Independence? But it is said that great danger is to be apprehended
from the Catholics because of a ‘secret order’ amongst them, known
as Jesuits. ‘No one,’ says a Know-Nothing writer, ‘knows, or possibly
can know, the extent of their influence in this country. One of them
may eat at your table, instruct your children, and profess to be a
good Protestant, and you never suspect him. Their great aim is to
make their mark in America. Perjury to them is no sin, if the object
of it be to spread Catholicism or acquire political influence in the
country.’ Whether this be true of the Jesuits or not I cannot say. But
I submit it to the consideration of candid minds how far it is true of
the new order of Know-Nothings, which is now so strenuously
endeavoring to make its mark in America, and to gain political
influence in the country, not only by putting down all foreigners, and
all native-born citizens who may be of Catholic faith, but also all
other native-born citizens who will not take upon their necks the
yoke of their power. Do not hundreds and thousands of them go
about daily and hourly, denying that they belong to the order, or that
they know anything about it? May they not, and do they not ‘eat at
your table,’ attend your sick, and some of them preach from your
pulpits, and yet deny that they know anything about that ‘order’
which they are making such efforts to spread in the land? I do not
say all of them do this; but is it not common with the ‘order,’ thus by
some sort of equivocation and slippery construction, to mislead and
deceive those with whom they converse? There is nothing worse
that can be said of any man or any people indicating a destruction of
morals or personal degradation, than that ‘the truth is not in him.’ It
is the life and soul of all the virtues, human or divine. Tell me not
that any party will effect reformation of any sort, bad as we now are
in this land, which brings into disrepute this principle upon which
rests all our hopes on earth, and all our hopes for immortality. And
my opinion is that the Protestant ministers of the Gospel in this
country, instead of joining in this New England, puritanical,
proscriptive crusade against Catholics, could not render a better
service to their churches, as well as the State, in the present
condition of morals amongst us, than to appoint a day for everyone
of them to preach to their respective congregations from this text,
‘What is truth?’ Let it also be a day set aside for fasting, humiliation
and prayer—for repentance in sackcloth and ashes—on account of
the alarming prevalence of the enormous sin of lying! Was there
ever such a state of general distrust between man and man before?
Could it ever have been said of a Georgia gentleman, until within a
few months past, that he says so and so, but I don’t know whether
to believe him or not? Is it not bringing Protestantism, and
Christianity itself, into disgrace when such remarks are daily made,
and not without just cause, about Church communicants of all our
Protestant denominations—and by one church member even about
his fellow-member? Where is this state of things to lead to, or end,
but in general deception, hypocrisy, knavery, and universal
treachery?
“Was ever such tyranny heard of in any old party in this country as
that which this new ‘order’ sets up? Every one of them knows, and
whether they deny it or not, there is a secret monitor within that
tells them that they have pledged themselves never to vote for any
Roman Catholic to any office of profit or trust. They have thus
pledged themselves to set up a religious test in qualifications for
office against the express words of the Constitution of the United
States. Their very organization is not only anti-American, anti-
republican, but at war with the fundamental law of the Union, and,
therefore, revolutionary in its character, thus silently and secretly to
effect for all practical purposes a change in our form of government.
And what is this but revolution? Not an open and manly rebellion,
but a secret and covert attempt to undermine the very corner-stone
of the temple of our liberties.
“Whenever any government denies to any class of its citizens an
equal participation in the privileges, immunities, and honors enjoyed
by all others, it parts with all just claim to their allegiance. Allegiance
is due only so long as protection is extended; and protection
necessarily implies an equality of right to stand or fall, according to
merit, amongst all the members of society, or the citizens of the
commonwealth. The best of men, after all, have enough of the old
leaven of human nature left about them to fight when they feel
aggrieved, outraged and trampled upon; and strange to say, where
men get to fighting about religion they fight harder, and longer and
more exterminatingly than upon any other subject. The history of
the world teaches this. Already we see the spirit abroad which is to
enkindle the fires and set the fagots a blazing—not by the Catholics,
they are comparatively few and weak; their only safety is in the
shield of the constitutional guarantee; minorities seldom assail
majorities; and persecutions always begin with the larger numbers
against the smaller. But this spirit is evinced by one of the numerous
replies to my letter. The writer says: ‘We call upon the children of the
Puritans of the North, and the Huguenots of the South, by the
remembrance of the fires of Smithfield, and the bloody St.
Bartholomew, to lay down for once all sectional difficulties,’ etc., and
to join in this great American movement of proscribing Catholics.
What is this but the tocsin of intestine strife? Why call up the
remembrance of the fires of Smithfield but to whet the Protestant
appetite for vengeance? Why stir up the quiet ashes of bloody St.
Bartholomew, but for the hope, perhaps, of finding therein a
slumbering spark from which new fires may be started? Why
exhume the atrocities, cruelties, and barbarities of ages gone by
from the repose in which they have been buried for hundreds of
years, unless it be to reproduce the seed, and spread amongst us
the same moral infection and loathsome contagion?—just as it is
said the plague is sometimes occasioned in London by disentombing
and exposing to the atmosphere the latent virus of the fell disease
still lingering in the dusty bones of those who died of it centuries
ago. Fellow citizens, Fellow Protestants, Fellow Americans—all who
reverence the constitution of your country—I entreat you, and I
envoke you to give no listening ear to such fanatical appeals.
“When the principles of the Constitution are disregarded, when
those ‘checks and restraints,’ put in it as Mr. Madison has told us, for
‘a defence to the people against their own temporary errors and
delusions,’ are broken down and swept away, when the whole
country shall have been brought under the influence of the third
degree of this Know-Nothing order, if that time shall ever come,
then, indeed may the days of this Republic, too, be considered as
numbered.
“I wish to say something to you about this third degree, the union
degree, as it is called. For under this specious title, name or guise,
the arch-tempter again approaches us, quite as subtly as under the
other of ‘Americans shall rule America.’ The obligation taken in this
degree is ‘to uphold, maintain and defend’ the Union, without one
word being said about the Constitution. Now, as much as we all, I
trust, are devoted to the Union, who would have it without the
Constitution? This is the life and soul of it—this is its animating spirit.
It is this that gives it vitality, health, vigor, strength, growth,
development and power. Without it the Union could never have been
formed, and without it it cannot be maintained or held together.
Where the animating principle of any living organism is extinguished,
this is death, and dissolution is inevitable. You might just as well
expect that the component parts of your bodies could be held
together by some senseless incantations after the vital spark has
departed, as that this Union can be held together by any Know-
Nothing oaths when the Constitution is gone. Congress is to be done
away with, except in so far as its members may be necessary, as the
dumb instruments for registering the edicts of an invisible but all-
powerful oligarchy. Our present Government is to be paralyzed by
this boa-constrictor, which is now entwining its coils around it. It is
to be supplanted and displaced by another self-constituted and
secretly organized body to rise up in its stead, a political ‘monster,’
more terrible to contemplate than the seven-headed beast spoken of
in the Apocalypse.
“I have seen it stated in the newspapers by some unknown writer,
that my letter to Col. Thomas will be my political winding-sheet. If
you and the other voters of the Eighth Congressional District so will
it, so let it be; there is but one other I should prefer—and that is the
Constitution of my country; let me be first wrapped in this, and then
covered over with that letter, and the principles I have announced
this night; and thus shrouded I shall be content to be laid away,
when the time comes, in my last resting-place without asking any
other epitaph but the simple inscription carved upon the headstone
that marks the spot—‘Here sleep the remains of one who dared to
tell the people they were wrong when he believed so, and who
never intentionally deceived a friend, or betrayed even an
enemy.’”[8]
Thus spoke Alexander H. Stephens, Georgia’s greatest statesman,
of the pernicious tendencies of the Know-Nothing party. On that
speech he ran for Congress and was elected by three thousand
majority. Know-Nothingism was thus slain in Georgia. Since the
death of Mr. Stephens some scribbler with a talent for forgery has
taken the quotation marks from the paragraph about the Jesuits in
the foregoing speech, affixed Mr. Stephens’s name to it, and sent it
on its rounds through the press as the declared opinion of the dead
statesman concerning the followers of Loyola. Mr. Stephens quoted
the paragraph from a Know-Nothing writer, not to approve the attack
on the Jesuits, but for the opposite purpose of showing it applied to
the Know-Nothings themselves. No man in this country could use the
weapon of retort with more effect than Alexander H. Stephens, and
his remarks on the paragraph in question afford a favorable instance
of his power in that line. That this stupid calumny on the great man
who battled so nobly for the equal rights of Catholics and
Protestants, Jews and Gentiles, foreign born and native Americans,
should have been palmed off on the public, is less surprising than
that it should have found its way into certain Catholic newspapers, in
the columns of at least one of which the present writer read it
shortly after the death of Mr. Stephens.
The ever memorable conflict in Virginia of 1855, between the
Know-Nothings and Democrats, was led on the part of the latter by
the gallant Henry A. Wise. That conflict was one of great national
magnitude. If the Know-Nothings, theretofore victorious, had then
succeeded, it is likely a civil war precipitated by religious fanaticism
would have followed, not to be conducted between the States, as
later unfortunately occurred, but between citizens of the same cities,
and towns and neighborhoods throughout the Union, with a fury to
make humanity shudder—in every sense of the word a civil war. The
Virginia election of that year was, therefore, watched with intense
interest by the whole American people, and a feeling of feverish
excitement was everywhere visible. Henry A. Wise, the
uncompromising enemy of the Know-Nothings, was named as the
Democratic candidate for Governor of Virginia. Never was such a
canvass before. He went everywhere, pouring out fiery eloquence in
the Western Mountains, in the Blue Ridge that milks the clouds,
upon the Potomac, lovely River of Swans, on the Rappahannock, the
Piankatank, Mob Jack Bay, James River, Elizabeth River, down to the
North Carolina line; and wherever he went this second Patrick Henry
stirred the people’s hearts as they had not been stirred before. One
of the best stump speeches ever heard in this country was made by
Mr. Wise at Alexandria. He had declared hostility to the Know-
Nothings in a letter to a citizen of Virginia, written September 18,
1854.
In that letter he said: “I am a native Virginian; my ancestors on
both sides for two hundred years were citizens of this country and
this State—half English, half Scotch. I am a Protestant by birth, by
baptism, by intellectual belief, and by education and by adoption. I
am an American, in every fibre and in every feeling an American; yet
in every character, in every relation, in every sense, with all my head
and all my heart, and all my might, I protest against this secret
organization of native Americans and of Protestants to proscribe
Roman Catholic and naturalized citizens. As early as 1787 we
established a great land ordinance, the most perfect system of
eminent domain, of proprietary titles, and of territorial settlements,
which the world had ever beheld to bless the homeless children of
men. It had the very house-warming of hospitality in it. It wielded
the logwood axe, and cleared a continent of forests. It made an
exodus in the old world, and dotted the new with log-cabins, around
the hearths of which the tears of the aged and the oppressed were
wiped away, and cherub children were born to liberty, and sang its
songs, and have grown up in its strength and might and majesty. It
brought together foreigners of every country and clime—immigrants
from Europe of every language and religion, and its most wonderful
effect has been to assimilate all races. Irish and German, English
and French, Scotch and Spaniard, have met on the Western prairies,
in the Western woods, and have peopled villages and towns and
cities—queen cities, rivalling the marts of Eastern commerce; and
the Teutonic and Celtic and Anglo-Saxon races have in a day mingled
into one undistinguishable mass—and that one is American. The
children of all are crossed in blood in the first generation, so that
ethnology can’t tell of what parentage they are—they all become
brother and sister Jonathans. As in the colonies, as in the revolution,
as in the last war, so have foreigners and immigrants of every
religion and tongue contributed to build up the temple of American
law and liberty until its spire reaches to heaven, whilst its shadow
rests on earth. If there has been a turnpike road to be beaten out of
the rocky metal, or a canal to be dug, foreigners and immigrants
have been armed with the mattock and the spade and if a battle on
sea and land had to be fought, foreigners and immigrants have been
armed with the musket and the blade.
“We can name the very hour of our birth as a people. We need
recur to no fable of a wolf to whelp us into existence. As a nation we
are but seventy-eight years of age. Many persons are now living who
were alive before this nation was born. And the ancestors of this
people about two centuries only ago were foreigners, every one of
them coming to the shores of this country to take it away from the
aborigines, and to take possession of it by authority either directly or
derivatively of Papal Power. His Holiness the Pope was the great
grantor of all the new countries of North America. Foreigners in the
name of the Pope and Mother Church took possession of North
America, to have and to hold the same to their heirs against the
heathen forever. And now already their descendants are for
excluding foreigners, and the Pope’s followers from an equal
enjoyment of this same possession. So strange is human history.
Christopher Columbus! Ferdinand and Isabella! What would they
have thought of this had they foreseen it when they touched a
continent and called it theirs in the name of the Holy Trinity, by
authority of the keeper of the keys of Heaven, and of the great
grantor of the empire and domain of earth? What would have
become of our national titles to northeastern and northwestern
boundaries, but for the plea of this authority, valid of old among all
Christian powers?”
Writing thus in September, 1854, Mr. Wise, although he had been
a Whig years before, was nominated for Governor by the Democrats
in December of the same year. In his famous Alexandria speech,
before discussing Know-Nothingism, he told the people some
practical truths explanatory of the decadence of the prosperity of
Virginia, of the causes producing it, and the remedies to be applied.
“You have,” he said, “the bowels of your Western mountains rich in
iron, in copper, in coal, in salt, in gypsum, and the very earth is so
rich in oil that it sets the rivers in flame. You have the line of the
Alleghany, that beautiful Blue Ridge which stands placed there by
the Almighty, not to obstruct the way of the people to market, but
placed there in the very bounty of Providence to milk the clouds, to
make the sweet springs which are the sources of your rivers. And at
the head of every stream is the waterfall murmuring the very music
of your power to put spindles in motion. And yet commerce has long
ago spread her sails and sailed away from you; you have not as yet
dug more than coal enough to warm yourselves at your own
hearths; you have set no tilt-hammer of Vulcan to strike blows
worthy of gods in the iron foundries. You have not yet spun more
than coarse cotton enough, in the way of manufacture, to clothe
your own slaves. You have had no commerce, no mining, no
manufactures. You have relied alone on the single power of
agriculture; and such agriculture! Your sedge patches outshine the
sun. Your inattention to your only source of wealth has scarred the
very bosom of mother earth. Instead of having to feed cattle on a
thousand hills, you have had to chase the stump-tailed steer through
the sedge patches to procure a tough beef-steak. You are in the
habit of discussing Federal politics; and permit me to say to you,
very honestly and very openly, that next to brandy, next to card
playing, next to horse-racing, the thing that has done more harm to
Virginia than any other in the course of her past history, has been
her insatiable appetite for Federal politics. She has given all her
great men to the Union. Her Washington, her Jefferson, her
Madison, her Marshall, her galaxy of great men she has given to the
Union. Richmond, instead of attending to Richmond’s business, has
been too much in the habit of attending to the affairs of Washington
city, when there are plenty there, God knows, to attend to them
themselves. * * “Puritanism,” said Mr. Wise, has disappeared, and
we have in place of it Unitarianism, Universalism, Fourierism,
Millerism, Mormonism—all the odds and ends of isms—until at last
you have a grand fusion of all those odds and ends of isms in the
omnium gatherum of isms called Know-Nothingism. Having swept
the North, the question was: How can this ism be wedged in in the
South? And the devil was at the elbow of these preachers of
‘Christian politics’ to tell them precisely how.” [At this point Mr. Wise
was interrupted by cat-calls, derisive cheers and other
manifestations of the Know-Nothing element of the meeting.] “There
were three elements in the South,” continued the speaker, “and in
Virginia particularly, to which they might apply themselves. There is
the religious element, the 103,000 Presbyterians, the 300,000
Baptists, the 300,000 Methodists of Virginia. Well, how were they to
reach them? Why, just by raising a hell of a fuss about the Pope!
“Cæsar’s kingdom is political, is a carnal kingdom. And I tell you
that if I stood alone in the State of Virginia, and if priestcraft—if the
priests of my own Mother Church dared to lay their hands on the
political power of our people, or to use their churches to wield
political influence, I would stand, in feeble imitation it may be, but I
would stand, even if I stood alone, as Patrick Henry stood in the
Revolution, between the parsons and the people. These men, many
of whom are neither Episcopalians, Presbyterians, Baptists,
Methodists, Congregationalists, Lutherans, nor what not—who are
men of no religion, who have no church, who do not say their
prayers, who do not read their Bible, who live God-defying lives
every day of their existence, are now seen with faces as long as
their dark-lanterns, with the whites of their eyes turned up in holy
fear lest the Bible should be shut up by the Pope! You tell the people
that Catholics never gave aid to civil liberty; that they never yet
struck a blow for the freedom of mankind. Who gave you alliance
against the crown of England? Who but that Catholic king, Louis XVI.
He sent you from the Court of Versailles Lafayette, the boy of
Washington’s camp, a foreigner who never was naturalized, but who
bled at the redoubt of Yorktown, when Arnold, a native, like Absalom
proved traitor.
“And, Sir, before George Washington was born, before Lafayette
wielded the sword, or Charles Carroll the pen for his country, six
hundred and forty years ago, on the 16th of June, 1214, there was
another scene enacted on the face of the globe, when the general
charter of all charters of freedom was gained, when one man, a man
called Stephen Langton, swore the Barons of England for the people
against the power of the King—swore the Barons on the high altar of
the Catholic Church at St. Edmundsbury, that they would have
Magna Charta or die for it. The charter which secures to every one
of you to-day trial by jury, freedom of the press, freedom of the pen,
the confronting of witnesses with the accused, and the opening of
secret dungeons—that charter was obtained by Stephen Langton
against the King of England, and if you Know-Nothings don’t know
who Stephen Langton was, you know nothing sure enough. He was
a Catholic Archbishop of Canterbury. I come here not to praise the
Catholics, but I come here to acknowledge historical truths, and to
ask of Protestants—what has heretofore been the pride and boast of
Protestants—tolerance of opinion in religious faith.