C is a general-purpose, imperative, high-level programming language developed by Dennis Ritchie to develop the UNIX operating system at Bell Labs in 1972. It has since become one of the most widely used programming languages of all time.
It supports structured programming, variable scope, recursion and static type system that prevents many unwanted operations. C efficiently maps it's code to machine instructions, and hence it is suitable for applications that is to be coded in assembly language, including operating systems and application software for various computers ranging from supercomputers to embedded systems.
C has been standardized by the American National Standards Institute (ANSI) since 1989 (see ANSI C) and after that by the International Organization for Standardization (ISO).
Despite its low-level capabilities, the language was designed to encourage cross-platform programming. A standards-compliant and portably written C program can be compiled for a very wide variety of computer platforms and operating systems with few changes to its source code. The language has become available on a very wide range of platforms, from embedded microcontrollers to supercomputers.
For more information go to Wikipedia
Programming in C is much easy, you can write your first Hello World program as below and compile the code with any C compiler to generate executable file and execute that file to get output.
In above code #include is pre-processor statement. It gives instruction to compiler to replace this statement with content of stdio.h (file inside of <>) before compilation.
void main() is main function and entry point for program. Statements to be executed in program is written inside of {}.
printf is function to print given message, string and any other formatted values on screen.
It supports structured programming, variable scope, recursion and static type system that prevents many unwanted operations. C efficiently maps it's code to machine instructions, and hence it is suitable for applications that is to be coded in assembly language, including operating systems and application software for various computers ranging from supercomputers to embedded systems.
C has been standardized by the American National Standards Institute (ANSI) since 1989 (see ANSI C) and after that by the International Organization for Standardization (ISO).
Despite its low-level capabilities, the language was designed to encourage cross-platform programming. A standards-compliant and portably written C program can be compiled for a very wide variety of computer platforms and operating systems with few changes to its source code. The language has become available on a very wide range of platforms, from embedded microcontrollers to supercomputers.
For more information go to Wikipedia
Programming in C is much easy, you can write your first Hello World program as below and compile the code with any C compiler to generate executable file and execute that file to get output.
#include<stdio.h> void main() { printf("Hello World"); }
In above code #include
void main() is main function and entry point for program. Statements to be executed in program is written inside of {}.
printf is function to print given message, string and any other formatted values on screen.
No comments:
Post a Comment