Professional Documents
Culture Documents
Broge C
Broge C
سی کا تعارف
سی ایک پروگرامنگ زبان ہے جو 1972میں امریکہ کے اے ٹی اینڈ ٹی کے
بیل لیبارٹریز میں تیار کی گئی تھی.
اسے ڈینس رچی نامی شخص نے ڈیزائن اور لکھا تھا.
ستر کی دہائی کے آخر میں سی نے اس وقت کی زیادہ واقف زبانوں کی جگہ
PL / I ، ALGOLوغیرہ کی جگہ لینا شروع کردی۔
اے این ایس آئی سی کا معیار 1980کی دہائی کے اوائل میں سامنے آیا ،اس
کتاب کو دو عنوانات میں تقسیم کردیا گیا:
اصل کو ابھی بھی سی میں پروگرامنگ کہا جاتا تھا ،اور اے این ایس آئی سی کا
احاطہ کرنے والے عنوان کو اے این ایس آئی سی میں پروگرامنگ کہا جاتا تھا.
یہ اس لئے کیا گیا تھا کہ مرتب کرنے والے دکانداروں کو اپنے اے این ایس آئی
سی کمپلرز کو رہا کرنے میں کئی سال لگے اور ان کے لئے ہر جگہ سی بننا
اتنا مشہور لگتا ہے کہ یہ قابل اعتماد ہے ,آسان اور استعمال میں آسان ہے۔ آج
اکثر سنا جاتا ہے – “ Cپہلے ہی # C + + ، Cاور جاوا جیسی زبانوں کے
ذریعہ سپر کیا گیا ہے.
انگریزی زبان سیکھنے اور سی زبان سیکھنے کے مابین ایک قریبی مشابہت
ہے .انگریزی سیکھنے کا کالسیکی طریقہ یہ ہے کہ زبان میں استعمال ہونے
والے حروف کو پہلے سیکھیں ،پھر ان حروف تہجی کو الفاظ بنانے کے لئے
جوڑنا سیکھیں ,جس کے نتیجے میں جملے تشکیل دینے کے لئے مل جاتے ہیں
اور پیراگراف تشکیل دینے کے لئے جملے مل جاتے ہیں.
لرننگ سی ایک جیسی اور آسان ہے .پروگرام لکھنے کا طریقہ سیکھنے کے
بجائے ،ہمیں پہلے یہ جان لینا چاہئے کہ سی میں حروف تہجی ،نمبر اور
خصوصی عالمتیں کیا استعمال ہوتی ہیں ،پھر ان کو کس طرح مستقل ،متغیر
اور آخر کار یہ کس طرح مشترکہ,اور مطلوبہ الفاظ استعمال کیے جاتے ہیں
.طور پر ہدایت تشکیل دیتے ہیں
.پروگرام بنانے کے لئے ہدایات کے ایک گروپ کو بعد میں جوڑا جائے گا
Lecture Note: 1
Introduction to C
In the late seventies C began to replace the more familiar languages of that time like PL/I,
ALGOL, etc
ANSI C standard emerged in the early 1980s, this book was split into two titles:
The original was still called Programming in C, and the title that covered ANSI C was called
Programming in ANSI C.
This was done because it took several years for the compiler vendors to release their ANSI C
compilers and for them to become ubiquitous C seems so popular is because it is reliable, simple
and easy to use. often heard today is – “C has been already superceded by languages like C++,
C# and Java.
There is a close analogy between learning English language and learning C language. The
classical method of learning English is to first learn the alphabets used in the language, then
learn to combine these alphabets to form words, which in turn are combined to form sentences
and sentences are combined to form paragraphs.
Learning C is similar and easier. Instead of straight-away learning how to write programs, we
must first know what alphabets, numbers and special symbols are used in C, then how using
them constants, variables and keywords are constructed, and finally how are these combined to
form an instruction.
1. Documentation section
2. Linking section
3. Definition section
Declar
ation
section
Execut
able
section
: دستاویز کا سیکشن.1
1. DOCUMENTATION SECTION:
comes first and is used to document the use of logic or reasons in your program.
It can be used to write the program's objective, developer and logic details. The
documentation is done in C language with /* and */ .
: لنکنگ سیکشن.2.
وڑنے کےššو جššیہ سیکشن مرتب کرنے والے کو کلیدی الفاظ کے کچھ واقعات ک
ڈرššئے ؟ ہیššرنے کے لššرام کššا پروگššدر آپ کššال انššا افعššلئے کہتا ہے ی
.فائلیں اس حصے میں بیان کیا گیا ہے
> stdio.h < شامل کریں# .جیسے
2. LINKING SECTION :
This section tells the compiler to link the certain occurrences of keywords or
functions in your program to the header files specified in this section.
e.g. #include <stdio.h>
: تعریف سیکشن.
یہ ہے استعمال کیا کرنے کے لئے اعالن کچھ مستقل اور تفویض وہ کچھ
.قدر
25 وضاحت میکس# .جیسے
3. DEFINITION SECTION:
Here #define is a compiler directive which tells the compiler whenever MAX
is found in the program replace it with 25.