📘 ❞ C Programming Tutorial ❝ كتاب

كتب لغة السي - 📖 ❞ كتاب C Programming Tutorial ❝ 📖

█ _ 0 حصريا كتاب C Programming Tutorial 2024 Tutorial: Preface xi Preface Every program is limited by the language which used to writ e it a programmer’s Unlike BASIC or Pascal, was not wri tten as a teaching aid, but an implementation a compu ter language and programming tool has grown popular because progr ammers like it! It tricky masterful one Sceptics have said that is a in everything can go wrong does wron g True, it does do much hand holding, also hold anythi ng back If you have come hope of finding powerful for writing everyday computer programs, then you will be disappoint ed ideally suited modern computers and This book tutorial Its aim teach beginner, but with enough details so outgrown years I t presumes that some previous aquaintance with — y ou need to know what variable function ne ed much experience essential follow order cha pters rigorously, but if are beginner recommended When comes d own to it, most languages basically same kinds features : variables, ways of making loops, ways decisions, accessing files etc If you want plan your assault on C, think about already kn ow about programming expect look for You most likely find all those things more, work though chapters The examples programs range from quick progra ms, which do no more than illustrate sole use simple feature, to complete application occupying several pages In places th ese make use features before they properly been explained Th ese programs serve taster Mark Burgess 1987, 1999 This first written 1987; this new edition updat ed and rewritten 1999 The originally published Dabs Press Since the gone out print, David Atherton Dabs I agr eed to release manuscript, per original contract This n ew is written Texinfo, documentation system use s single source file produce both line information printed output You read this online, using either Emacs Info reader, th e standalone Info reader, World Wide Web browser, read t ext a typeset, Table Contents i Table Contents Preface xi 1 Introduction 1 1 1 High Levels Low Levels 2 Basic ideas C 5 1 3 Compiler 4 Errors 8 1 5 Use Upper Lower Case 9 1 6 Declarations 10 1 7 Questions 10 2 Reserved words example 11 2 The printf() function Example Listing 12 2 Output 12 3 Operating systems environments 13 3 Files Devices Filenames 14 3 Command Languages Consoles 15 4 Libraries 17 4 19 5 style 21 6 form program 23 6 26 7 Comments 27 7 1 2 Question 28 ii 8 Functions 29 8 Structure diagram 31 8 Program Functions values 32 8 Breaking early 34 8 The exit() function Types 35 8 35 9 Variables, Types 37 9 38 9 Where declare things Declarations Initialization 39 9 Individual 40 9 1 char 41 9 Integers 42 9 Whole numbers Floating Point Choosing Variables 43 9 Assigning variables another 44 9 8 Cast Operator 9 Storage class static and extern 47 9 10 Functions, 48 9 11 49 10 Parameters 51 10 Declaring Parameters Value 52 10 actual parameters 57 10 58 10 Variable 60 10 63 10 63 11 Scope : Local And Global 65 11 Global Communication 68 11 Style Note 69 11 Style 70 11 كتب لغة السي مجاناً PDF اونلاين وهي برمجة حاسوب متعددة الأغراض أمرية تدعم البرمجة المهيكلة والنطاق المعجمي المتغير والاستدعاء الذاتي بينما يمنع نظام النوع الساكن العديد من العمليات غير المرغوبة ومن خلال تصميم فقد وفرت تركيبات تعيين دقيقة لتعليمات الآلة النموذجية وبالتالي صممت للاستخدام الدائم التطبيقات المبرمجة مسبقا بلغة التجميع كأنظمة التشغيل وكذلك البرامج التطبيقية لأجهزة الحاسوب الحواسيب العملاقة وحتى الأنظمة المدمجة صممها وطوّرها أوائل عقد السبعينيات كن تومسون وبريان كيرنيغان ودينيس ريتشي وقد الأصل لتستعمل التطوير والعمل يونكس ثم لقيت انتشاراً واسعاً منذ ذلك الحين اليوم ويظهر شعبيتها لدى أغلب مبرمجي استعمالاتها العديدة والمتنوعة وتعدّ اللغة الأم للعديد لغات الحديثة مثل بلس والتي تعدّ توسيعًا وإضافة مكملة للسي

إنضم الآن وتصفح بدون إعلانات
C Programming Tutorial
كتاب

C Programming Tutorial

C Programming Tutorial
كتاب

C Programming Tutorial

عن كتاب C Programming Tutorial:
Preface
xi
Preface
Every program is limited by the language which is used to writ
e it. C is a
programmer’s language. Unlike BASIC or Pascal, C was not wri
tten as a
teaching aid, but as an implementation language. C is a compu
ter language
and a programming tool which has grown popular because progr
ammers like
it! It is a tricky language but a masterful one. Sceptics have
said that it is
a language in which everything which can go wrong does go wron
g. True, it
does not do much hand holding, but also it does not hold anythi
ng back. If
you have come to C in the hope of finding a powerful language for
writing
everyday computer programs, then you will not be disappoint
ed. C is ideally
suited to modern computers and modern programming.
This book is a tutorial. Its aim is to teach C to a beginner, but
with
enough of the details so as not be outgrown as the years go by. I
t presumes
that you have some previous aquaintance with programming — y
ou need to
know what a variable is and what a function is — but you do not ne
ed much
experience. It is not essential to follow the order of the cha
pters rigorously,
but if you are a beginner to C it is recommended. When it comes d
own to
it, most languages have basically the same kinds of features
: variables, ways
of making loops, ways of making decisions, ways of accessing
files etc. If you
want to plan your assault on C, think about what you already kn
ow about
programming and what you expect to look for in C. You will most
likely find
all of those things and more, as you work though the chapters.
The examples programs range from quick one-function progra
ms, which
do no more than illustrate the sole use of one simple feature,
to complete
application examples occupying several pages. In places th
ese examples make
use of features before they have properly been explained. Th
ese programs
serve as a taster of what is to come.
Mark Burgess. 1987, 1999
This book was first written in 1987; this new edition was updat
ed and
rewritten in 1999. The book was originally published by Dabs
Press. Since
the book has gone out of print, David Atherton of Dabs and I agr
eed to
release the manuscript, as per the original contract. This n
ew edition is
written in Texinfo, which is a documentation system that use
s a single source
file to produce both on-line information and printed output.
You can read
this tutorial online, using either the Emacs Info reader, th
e standalone Info
reader, or a World Wide Web browser, or you can read this same t
ext as a
typeset, printed book.

Table of Contents
i
Table of Contents
Preface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xi
1 Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1.1 High Levels and Low Levels
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1.2 Basic ideas about C
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
1.3 The Compiler
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
1.4 Errors
.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . .
8
1.5 Use of Upper and Lower Case
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
1.6 Declarations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10
1.7 Questions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10
2 Reserved words and an example
. . . . . . . . . . .
11
2.1 The
printf()
function
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
2.2 Example Listing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
2.3 Output
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
12
2.4 Questions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
3 Operating systems and environments
. . . . . .
13
3.1 Files and Devices
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
3.2 Filenames
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14
3.3 Command Languages and Consoles
. . . . . . . . . . . . . . . . . . . . . . . . . .
14
3.4 Questions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
4 Libraries
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17
4.1 Questions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
19
5 Programming style
. . . . . . . . . . . . . . . . . . . . . . .
21
6 The form of a C program
. . . . . . . . . . . . . . . . .
23
6.1 Questions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
26
7 Comments
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
27
7.1 Example 1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
27
7.2 Example 2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
27
7.3 Question
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
28
ii
8 Functions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
8.1 Structure diagram
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
8.2 Program Listing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
8.3 Functions with values
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
8.4 Breaking out early
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
34
8.5 The
exit()
function
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
34
8.6 Functions and Types
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
35
8.7 Questions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
35
9 Variables, Types and Declarations
. . . . . . . . .
37
9.1 Declarations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
9.2 Where to declare things
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38
9.3 Declarations and Initialization
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
39
9.4 Individual Types
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
40
9.4.1
char
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
40
9.4.2 Listing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
41
9.4.3 Integers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
9.5 Whole numbers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
9.5.1 Floating Point
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
9.6 Choosing Variables
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
43
9.7 Assigning variables to one another
. . . . . . . . . . . . . . . . . . . . . . . . . . .
44
9.8 Types and The Cast Operator
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
44
9.9 Storage class
static
and
extern
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
47
9.10 Functions, Types and Declarations
. . . . . . . . . . . . . . . . . . . . . . . . .
48
9.11 Questions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
49
10 Parameters and Functions
. . . . . . . . . . . . . . . .
51
10.1 Declaring Parameters
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
51
10.2 Value Parameters
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
52
10.3 Functions as actual parameters
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
57
10.4 Example Listing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
57
10.5 Example Listing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
58
10.6 Variable Parameters
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
60
10.7 Example Listing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
63
10.8 Questions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
63
11 Scope : Local And Global
. . . . . . . . . . . . . . . .
65
11.1 Global Variables
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
65
11.2 Local Variables
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
65
11.3 Communication : parameters
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
68
11.4 Example Listing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
68
11.5 Style Note
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
69
11.6 Scope and Style
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
70
11.7 Questions
. .
الترتيب:

#16K

0 مشاهدة هذا اليوم

#27K

21 مشاهدة هذا الشهر

#4K

35K إجمالي المشاهدات
المتجر أماكن الشراء
مناقشات ومراجعات
QR Code
أماكن الشراء: عفواً ، لا يوجد روابط مُسجّلة حاليا لشراء الكتاب من المتاجر الإلكترونية
نتيجة البحث