INTRODUCTION TO C (PROGRAMMING LANGUAGE)
Presented By:-
Minakshi Sharma
Govt. College Barwala Hisar
it’s a powerful general-purpose language used for :-� system-level programming, � embedded systems, � and software development.
Developed in 1972 by Dennis Ritchie at Bell Labs.
FEATURES OF C
Basic Structure of a C Program
A simple C program consists of:
Simple C Program to display Hello World
#include <stdio.h> // Preprocessor directive for input/output functions
int main()
{
printf("Hello, World!\n"); // Prints output to the screen
}
Note:- This statement is a single line comment that starts from // symbol :- // Prints output to the screen