Lecture 5 - Introduction To C

  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Lecture 5 - Introduction To C as PDF for free.

More details

  • Words: 291
  • Pages: 17
Introduction to C++

C? is it something

is it alien?

No It is not…

You know the things You just never associated them with Programming

History of C++

History • Invented by Dennis Ritchie, from language known as BCPL (called B) • Initially C was used for UNIX operating system. • ANSI C was adopted on Dec. 1989. • ANSI C standard is a base document of the proposed ANSI C++ standard.

C++ is middle level language • Allows manipulation of bits, bytes & addresses. (like system level languages) • Code is portable and easy to adopt. • No runtime error checking (unlike in high level languages) • Keywords (as in high level languages)

C++ as a programmers language • Structured. • Improves reliability of the code. • Used and tested by number of professional programmers. • Can work of systems programming as well as application programming.

Keywords • In computer programming, a keyword is a word or identifier that has a particular meaning to the programming language. • 32 keywords in C. • All in lowercase • e.g. – case, char, default, do, double, for, goto, if, void etc.

Language is same but computer cannot understand it

Language is binary but human cannot work with it

Compiler • Compiler is a software tool that translates source code into data that the computer can understand. • A bridge between, human language and computer language. • We will be using Turbo C++ compiler, commonly known as TC++. • C program will get converted into executable file (.exe)

YOUR FIRST C++ PROGRAM

Hello World Program Keyword

Function

Object

Header File

#include Main () { cout<< “Hello, World!”; }

End of function

Hello.cpp

Hello World Program

Hello.cpp output

C

You Later

Good Night

Related Documents