Showing posts with label language c. Show all posts
Showing posts with label language c. Show all posts

Wednesday, 29 June 2016

Why C ?


  •  'C' is popular because
  • It is reliable, simple and easy to use
  • It encourages modularity and good program organization
  • It is portable
  • It is a middle level
  • It provides good data-structuring facilities
Loop holes in 'C'
  • close to the hardware & malpractice prone to undesired behavior of system.
  • ‘C’ offers only straightforward, single-thread control flow: tests, loops, grouping and subprograms, but not multi programming, parallel operations & synchronization.
  • C provides no operations to deal directly with composite objects such as strings or arrays.

INTRODUCTION TO C PROGRAMMING LANGUAGE

C ? 


  • C is a programming language.
  • Developed at AT &T’s Bell Laboratories of USA in 1972.
  •  It was designed and written by Dennis Ritchie.
Versions of ‘C’
  • K & R C
  •  ANSI C
  •  ISO C
  •  ISO 9899
  •  C99
First Edition of ‘C’

  •  In 1978, the first edition of Kernighan and Ritchie's The C  Programming Language was published.
  •  It introduced the following features to the existing versions of  C
  •  structure data type
  •  long int data type
  •  unsigned int data type
  • The += operator

c programming
C Programming Tutorial-Dennis Ritchie

ANSI C

In 1989, C was first officially standardized by ANSI standards committees also included following new features
  1.  functions returning struct or union
  2.  void * data type
  3.  const qualifier to make an object Read Only
  4.  assignment for struct data types
ISO 9899
  •  The ANSI C standard, with a few minor modifications, was adopted as ISO standard number ISO 9899. 
  • The first ISO edition of this document was published in 1990(ISO 9899:1990)
  • ISO 9899:1999, which was published in 1999 is commonly referred to as "C99". 
  • It was adopted as an ANSI standard in March 2000.
New features in C99
  • Inline functions
  • Freeing of restrictions on the location of variable declarations 
  • The addition of several new data types, including long long int
  • An explicit Boolean data type
  • Official support for comments beginning with “// ” as in C++
  • Several new library functions and Header files