Introduction to Computer Programming



Download 0,68 Mb.
bet1/4
Sana27.06.2022
Hajmi0,68 Mb.
#709414
  1   2   3   4
Bog'liq
270 1 CIntro Up To Functions

CSC 270 – Survey of Programming Languages

  • C Lecture 1 : Getting Started: in C
  • Modified from Dr. Robert Siegfried’s Presentation

Objective

  • Intro to C
  • Tools we will use
  • Program file structure
  • Variables
  • Read from screen and print to screen
  • Decisions (If)

C Orientation

  • Created in 1972 to write operating systems (Unix in particular)
  • Evolved from B
  • Can be portable to other hardware (with careful design – use Plauger’s The Standard C Library book)
  • Built for performance and memory management – operating systems, embedded systems, real-time systems, communication systems

C Standardization

  • 1989 ANSI and ISO -> Standard C
  • 1999 C99
  • 2011 C11
  • Don’t get thrown when you lookup information on websites and find conflicts based upon standards

Later Languages

A First Program

  • #include
  • int main(void)
  • {
  • printf("This is my first C program.\n");
  • return(0);
  • }
  • statements
  • header
  • open and close braces mark
  • the beginning and end

A First Program – What Does It Do?

    • printf("This is my first C program.\n");
    • return(0);
  • Prints the message
  • This is my first C program.
  • Ends the program

Download 0,68 Mb.

Do'stlaringiz bilan baham:
  1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish