C language--Introduction. History 1970: B by Ken Thompson at AT&T Bell Lab 1972: C by Dennis Ritchie and Ken Tompson at At&T Bell Lab for UNIX 1978: “The.

Slides:



Advertisements
Similar presentations
the c language BY SA 1972 by Ken Thompson and Dennis Ritchie.
Advertisements

Sort the given string, without using string handling functions.
CSE1301 Computer Programming Lecture 4: C Primitives I.
Display a 12-Month Calendar CS-2301 D-term Programming Assignment #2 12-Month Calendar CS-2301 System Programming C-term 2009 (Slides include materials.
C workshop Yuli Kaplunovsky - Today - Introduction to C Recommended book: The C programming Language / Kernighan & Ritchie.
1 Lecture 2  Input-Process-Output  The Hello-world program  A Feet-to-inches program  Variables, expressions, assignments & initialization  printf()
Unix Continuum of Tools Do something once: use the command line Do something many times: –Use an alias –Use a shell script Do something that is complex.
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
Introduction to C Programming Overview of C Hello World program Unix environment C programming basics.
Declarations/Data Types/Statements. Assignments Due – Homework 1 Reading – Chapter 2 – Lab 1 – due Monday.
1 CSE 303 Lecture 8 Intro to C programming read C Reference Manual pp. Ch. 1, , 2.6, 3.1, 5.1, , , , Ch. 8 ; Programming.
1 ICS103 Programming in C Lecture 2: Introduction to C (1)
C programming an Introduction. Types There are only a few basic data types in C. char a character int an integer, in the range -32,767 to 32,767 long.
Introduction to Computer Science /16/15. Introduction and Attendance Handout.
Introduction to C. A Brief History Created by Dennis Ritchie at AT&T Labs in 1972 Originally created to design and support the Unix operating system.
A simple C program: Printing a line of text #include main() { printf(“hello, world\n”); } Program output: hello, world.
Computer Science 210 Computer Organization Introduction to C.
“C” Programming Language CIS 218. Description C is a procedural languages designed to provide lowlevel access to computer system resources, provide language.
Introduction to Computer Algorithmics and Programming Ceng 113 Variables and Operators in C.
Introduction to C Programming. A Brief History u Created by Dennis Ritchie at AT&T Labs in 1972 u Originally created to design and support the Unix operating.
Introduction to “Programming in C”
History of C 1950 – FORTRAN (Formula Translator) 1959 – COBOL (Common Business Oriented Language) 1971 – Pascal Between Ada.
C Programming language Basic Concepts Prepared By The Smartpath Information systems
1 COMP 2130 Introduction to Computer Systems Computing Science Thompson Rivers University.
CSCI 130 Chapter 3. Variables & Names Variable Declarations: –reserve a storage location in memory –identify the name of the variable –identify the type.
CGS 3460 Course Web Site –Get CISE Account –Submit via Web Ct –Late Policy –50% Per Day –Missubmission policy –Academic Honesty –Class Scheduling.
1 CSC 533: Organization of Programming Languages Spring 2010 Imperative programming in C  language history  design goals  features data types bindings.
Lecture 12: Pointers B Burlingame 25 Nov Announcements Homework 6 due Homework 7 posted, due with the final  Final prep Take home Lab posted tonight.
CSE1301 Computer Programming: Lecture 6 Input/Output.
Introduction to C programming. History of C programming Invented and Developed by Dennis Ritchie and Brian Kernighan at Bell Laboratories in 1972 Predecessor.
CMPE13Cyrus Bazeghi 1 Chapter 11 Introduction to Programming in C.
Introduction to C Programming Language. History of C  C was evolved by Dennis Ritchie at AT&T Bell Laboratories in early of 1970s  Successor of: ALGOL.
BASIC C PROGRAMMING LANGUAGE TUTORIAL infobizzs.com.
Fundamentals of Programming C++ Programming Language CS 1400 Dennis A. Fairclough Version 1.1 C++ Programming Language CS 1400 Dennis A. Fairclough Version.
Chapter 1 slides1 What is C? A high-level language that is extremely useful for engineering computations. A computer language that has endured for almost.
CSE1301 Computer Programming Lecture 2: Introduction to C Joselito (Joey) Chua
From Algorithms to Programs Both are sets of instructions on how to do a task Algorithm: –talking to humans, easy to understand –in plain (English) language.
Formatted Input and Output
Computer Science 210 Computer Organization
Formatted Input/Output
INC 161 , CPE 100 Computer Programming
Introduction to C Language
1. INTRODUCING C.
Computer Programming Techniques Semester 1, 1998
Command Line Arguments
C Language By Sra Sontisirikit
Introduction to C CSE 2031 Fall /3/ :33 AM.
BY GAWARE S.R. COMPUTER SCI. DEPARTMENT
Module 2 Arrays and strings – example programs.
CGS 3460 Course Web Site Get CISE Account.
Formatted Input/Output
CS1101 Computational Engineering
Visit for more Learning Resources
Computer Science 210 Computer Organization
C Formatted Input / Output Review and Lab Assignments
CSI 121 Structured Programming Language Lecture 7: Input/Output
תכנות מערכות בשפת C מבוא מכללת אורט כפר-סבא אורי וולטמן
אבני היסוד של תוכנית ב- C
מ- C++ ל- C קרן כליף.
Introduction to C Topics Compilation Using the gcc Compiler
Introduction C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell.
Introduction to C.
Introduction to C Topics Compilation Using the gcc Compiler
C ( Programming Language ) PSK Technologies By: Arti Sontakke An ISO 9001:2015 (QMS) Certified IT Company Computer Education | Software Development | Computer.
C Programming Language
Character Arrays char string1[] = “first”;
Introduction to C EECS May 2019.
C – Programming Language
Course Outcomes of Programming In C (PIC) (17212, C203):
Introduction to C CSE 2031 Fall /15/2019 8:26 AM.
Presentation transcript:

C language--Introduction

History 1970: B by Ken Thompson at AT&T Bell Lab 1972: C by Dennis Ritchie and Ken Tompson at At&T Bell Lab for UNIX 1978: “The C Programming Language” by Brian Kernighan and Dennis Ritchie (K&R C) 1988: ANSI C

The First Program #include main( ) { printf(“Hello, World!\n"); }

How to use printf() printf("Hello"); printf("Hello\n"); printf("%d", b); printf("The temperature is "); printf("%d", b); printf(" degrees\n"); printf("The temperature is %d degrees\n", b); printf("%d + %d = %d\n", a, b, c);

How to use printf() int (integer values) uses %d float (floating point values) uses %f char (single character values) uses %c character strings (arrays of characters, discussed later) use %s

How to use scanf() scanf("%d", &b); –int uses %d –float uses %f –char uses %c –character strings use %s scanf("%d %d",&a, &b);