• Verkeerd document? Gratis ruilen
  • Geschreven door studenten die geslaagd zijn
  • Direct beschikbaar na je betaling
  • Online lezen of als PDF
Verkopen
Kies je studieland
Kies je taal
Document preview thumbnail
Voorbeeld 4 van de 77 pagina's
Samenvatting

Summary c language

Document preview thumbnail
Voorbeeld 4 van de 77 pagina's

Summary study book The C Programming Language of Brian W. Kernighan, Dennis M. Ritchie - ISBN: 9789688802052 (c language)

Voorbeeld van de inhoud

PROGRAMMING FOR PROBLEM SOLVING USING C
UNIT I


Introduction to Computers: Computer Systems, Computing Environments, Computer languages,

Creating and running Programs, Computer Numbering System, Storing Integers, Storing Real

Numbers

Introduction to the C Language: Background, C Programs, Identifiers, Types, Variable,

Constants, Input/output, Programming Examples, Scope, Storage Classes and Type Qualifiers,

Tips and Common Programming Errors Key Terms, Summary, Practice Seat.

Structure of a C Program: Expressions Precedence and Associativity, Side Effects, Evaluating

Expressions, Type Conversion Statements, Simple Programs, Command Line Arguments Tips and

Common Errors, Key Terms, Summary, Practice Sets.




 
Computer Systems:-
A computer is a system made of two major components: hardware and
software. The computer hardware is the physical equipment. The software is the
collection of programs (instructions) that allow the hardware to do its job.


 Computer Hardware: - The hardware component of the computer system
consists of five parts: input devices, central processing unit (CPU) ,primary
storage, output devices, and auxiliary storage devices.




WWW.JNTUKNOTES.COM 1

,  The input device is usually a keyboard where programs and data are
entered into the computers. Examples of other input devices include
 a mouse, a pen or stylus, a touch screen, or an audio input unit.
 The central processing unit (CPU) is responsible for executing
instructions such as arithmetic calculations, comparisons
 among data, and movement of data inside the system.
 The output device is usually a monitor or a printer to show output. If
the output is shown on the monitor, we say we have a soft copy. If it is
 printed on the printer, we say we have a hard copy.
 Auxiliary storage, also known as secondary storage, is used for both input
and output. It is the place where the programs and data are stored
permanently. When we turn off the computer, or programs and data
 remain in the secondary storage, ready for the next time we need them.
 
Computer Software :-
Computer software is divided in to two broad categories:
system software and application software.
 System software manages the computer resources .It provides
 the interface between the hardware and the users.
 Application software, on the other hand is directly responsible
 for helping users solve their problems.
 
Computing Environments:-
Computing Environment is a collection of computers / machines,
software, and networks that support the processing and exchange of
electronic information meant to support various types of computing
solutions. With the advent if technology the computing environments
have been improved.

Types of Computing Environments:-
1. Personal Computing Environment
2. Time sharing Environment
3. Client Server Computing Environment
4. Distributed Computing
1. Personal Computing Environment:-
Personal means, all the computer stuff will be tied together i.e
computer is completely ours, no other Connections.
2. Time sharing Environment:-




WWW.JNTUKNOTES.COM 2

, In computing, time-sharing is the sharing of a computing resource
among many users by means of multi programming and multi-tasking at the
same time. Mam users are connected to one or more computers.
3. Client Server Computing Environment:-
A client/server system is “a networked computing model that
distributes processes between clients and servers, which supply the requested
service.” A client/server network connects many computers, called clients, to a
main computer, called a server. Whenever client requests for something,
server receives the request and process it.
4. Distributed Computing:-
A Distributed Computing Environment Provides a seamless
integration of computing functions between different servers and
clients. the servers are connected by internet all over the world.

 
Computer Languages:-
To write a program for a computer, we must use a computer
language. Over the years computer languages have evolved from
machine languages to natural languages.

1940’s Machine level Languages
1950’s Symbolic Languages
1960’s High-Level Languages
 
Machine Languages:-
In the earliest days of computers, the only programming
languages available were machine languages. Each computer has its own
machine language, which is made of streams of 0’s and 1’s.
Instructions in machine language must be in streams of 0’s and 1’s because
the internal circuits of a computer are made of switches transistors and other
electronic devices that can be in one of two states: off or on. The off state is
represented by 0 , the on state is represented by 1.
The only language understood by computer hardware is machine language.
 
Symbolic Languages:-
In early 1950’s Admiral Grace Hopper, A mathematician and naval
officer developed the concept of a special computer program that would
convert programs into machine language.




WWW.JNTUKNOTES.COM 3

, Computer does not understand symbolic language it must be
translated to the machine language. A special program called
assembler translates symbolic code into machine language.
 
High Level Languages:-
Symbolic languages greatly improved programming effificiency;
they still required programmers to concentrate on the hardware that
they were using.
Working with symbolic languages was also very tedious because each
machine instruction has to be individually coded. The desire to improve
programmer efficiency and to change the focus from the computer to
the problem being solved led to the development of high-level language.


 Creating and running Programs:-

 Generally, the programs created using programming languages
like C, C++, Java, etc., are written using a high-level language like

English. But, the computer cannot understand the high-level
language.

 It can understand only low-level language. So, the program
written in high-level language needs to be converted into the

low-level language to make it understandable for the
computer. This conversion is performed using either
Interpreter or Compiler.

 Popular programming languages like C, C++, Java, etc., use the
compiler to convert high-level language instructions into low-

level language instructions.

 To create and execute C programs in Windows Operating
System, we need to install Turbo C software. We use the

following steps to create and execute C programs in Windows

OS…




WWW.JNTUKNOTES.COM 4

Gekoppeld boek
 image
Brian W. Kernighan, Dennis M. Ritchie The C Programming Language
Uitgever: 1988 ISBN: 9789688802052 Druk: Onbekend

Documentinformatie

Heel boek samengevat?
Ja
Geüpload op
29 januari 2022
Aantal pagina's
77
Geschreven in
2021/2022
Type
Samenvatting
$6.99

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Verkocht
1
Volgers
1
Items
20
Laatst verkocht
4 jaar geleden




Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen