unique features of c

Upload: meignanaprakasam-padmanaban

Post on 03-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 Unique Features of C

    1/2

    SUSANT K ROUT

    Unique features of C

    C is an attitude.

    For C is not merely a programming tool, a super-sufficient road roller that

    smoothens all the bumps that ever arose. Rather, it is a philosophy and a way of

    life. Like a benevolent parent, it allows a long rope within a loosely woven web of

    rules and principles, encouraging bouts of exploration on ones own.

    C was developed by Dennis Ritchie at AT &T laboratories. By nearly 1973, theessentials modern C was complete. And after this there was no looking back, as

    more a more computer professional switched over to C. Today there are C

    compilers available under very conceivable environment from DOS to WINDOWS to

    UNIX, an on all sizes of computers from micros to mainframes.

    The four most important reasons for C popularity are power, portability,

    performance, flexibility.

    C is the most powerful programming tool today because of its unique features:

    l C programming language is the middle level or intermediate level language

    this means it is machine oriented as well as user oriented language.

    l C has been widely used for writing operating system for example UNIX,

    Windows XP, DOS.

    l C is the only language whose compiler is also written in C language itself.l C has facilities for structured programming and it allows lexical variable scope

    and recursion.

    l Static type system feature of C prevents many unintended operations.

    l C has a rich set of 45 operators and 43 keywords.

    l C has its pointer which is very unique from any other language that provides

    the following benefits-

    l Pointer increases the execution speed and reduces the program execution

    time.

    l Pointer provides a sufficient tool for manipulating the dynamic data structures

    such as structure, link-list, queue and trees.

    l Function pointer, which allows for a rudimentary form of closure and

    polymorphism.

    l Pointers permit references to function and there by facilitating passing of

    function as argument to another function.

    l It provides low level unchecked access computer memory.

    l If a program requires accepting command line argument, then main function

    must have the argv, argc, env arguments declared in it. But C is so flexible

    that we cando it without using those.

    l C has union which combines the best features of all data storage objects

    combined with unmatched flexibility and ease of use. It is the ultimate data

    storage object that is available in C.

    l For efficient memory management C has bit fields in its structure.

    l The C preprocessor directive set the environment setting or recompilation

    instructions or conditions.

    l To store the array elements in memory C uses the row-major order.

    l 16 bit compiler compile the program into 16 bit machine code that will run on

    a computer with a 16 bit processor.16 bit machine code run on a 32 bit

    processor but 32 bit machine code will not run on 16 bit processor.

    l Cs power and fast program execution come from its ability to access low

    level commands, similar to assembly language, but with high level syntax.

    l The core C language leaves out many features included in the core of other

    languages. These functions are instead stored in the C Standard Library where

    they can be called on when needed.

    l The most strong point of C is its use of modularity. Sections of code can be

    stored in libraries for re-use in future programs. This concept of modularity

    also helps with Cs portability and execution speed.

    l Standard I/O library.

    l A relatively small set of reserved keywords.

    l Compound assignment operators of the form =op were changed to the form

    op= to remove the semantic ambiguity created by such constructs as, i =-

    50, which had been interpreted as i =- 50, instead of possibly intended i = -50.

    l Most of the computer games are written in C language.

    l Treats upper case and lower case letters distinctively.

    l Commands may be inserted any where in the program.

    Pages

    Archives

    Tags

    Recent Posts

    16/32 bits Programming

    Authors Views on DS

    BSNL EVDO setup in Linux

    C Language and its Importants

    Effective teacher

    Evolution of C language

    Limitation of Turbo C CompilerLinux Installation

    My views on C

    Seminar

    Tips on C

    Unique features of C

    Why Study Data Structure?

    October 2009

    214

    Susant K Rout

    ttp://susantk.wordpress.com/unique-features-of-c/ Page 1 / 2

    http://susantk.wordpress.com/authors-views/http://susantk.wordpress.com/bsnl-evdo-connection-in-linux/http://susantk.wordpress.com/effective-teacher/http://susantk.wordpress.com/2009/10/02/susant-k-rout/http://susantk.wordpress.com/2009/10/02/214/http://susantk.wordpress.com/2009/10/http://susantk.wordpress.com/why-study-data-structure/http://susantk.wordpress.com/unique-features-of-c/http://susantk.wordpress.com/tips-tricks-on-c-for-campus-interview/http://susantk.wordpress.com/seminar-by-susant-k-rout/http://susantk.wordpress.com/important-views-on-c/http://susantk.wordpress.com/linux-installation-in-windows-system/http://susantk.wordpress.com/limitation-of-turbo-c-compiler/http://susantk.wordpress.com/evolution-of-c-language/http://susantk.wordpress.com/effective-teacher/http://susantk.wordpress.com/c-language-and-its-importants/http://susantk.wordpress.com/bsnl-evdo-connection-in-linux/http://susantk.wordpress.com/authors-views/http://susantk.wordpress.com/1632-bits-programming-concept/http://susantk.wordpress.com/
  • 7/29/2019 Unique Features of C

    2/2

    Blog at WordPress.com. Theme: Almost Spring by Beccary

    l Lean object code specific to target hardware.

    l Inherent or invisible functionality like memory management, stack frames, CPU

    register manipulation, inline assembly etc.

    l Internationally standardized.

    Be the first to like this.Like

    Leave a Reply

    Notify me of follow-up comments via email.gfedc Post Comment

    55

    66

    Email (required)

    (Address never made public)

    Name (required)

    Website

    ttp://susantk.wordpress.com/unique-features-of-c/ Page 2 / 2

    http://beccary.com/http://theme.wordpress.com/themes/almost-spring/http://wordpress.com/?ref=footerhttps://gravatar.com/site/signup/http://susantk.wordpress.com/unique-features-of-c/?like=1&_wpnonce=1979bac263