Saturday, 5 October 2013

C Language

In computing, C is a general-purpose programming language initially developed by Dennis Ritchie in 1969. C has facilities for structured programming and allows lexical variable scope and recursion, while a static type system prevents many unintended operations. Its design provides constructs that map efficiently to typical machine instructions, and therefore it has found lasting use in applications. C is low level language.
C is one of the most widely used programming languages of all time, and C compilers are available for the majority of available computer architectures and operating system.
The C language exhibits the following characteristics:
->There is a small, fixed number of keywords, including a full set of flow of control primitives: for, if/else, while, switch, and do/while. There is one namespace, and user-defined names are not distinguished from keywords by any kind of sigil.
->There are a large number of arithmetical and logical operators, such as +, +=, ++, &, ~, etc.
->More than one assignment may be performed in a single statement.
->Function return values can be ignored when not needed.
->Declaration syntax mimics usage context. C has no "define" keyword; instead, a statement beginning with the name of a type is taken as a declaration. There is no "function" keyword; instead, a function is indicated by the parentheses of an argument list.
->Low-level access to computer memory is possible by converting machine addresses to typed pointers.

->Function and data pointers permit ad hoc run-time polymorphism

No comments:

Post a Comment