Introduction to C
(1) Developed by Dennis Ritchie
(2) Procedural language which fllows structure
(3) Supports various operating system and hardware platfroms
(4) Many Compilers are available for executing programs
(5) Many compilers are available for executing programs written in c
(6) Executable creatin from a c program is a two process
(i) compilation
(ii) liking
A "C" program has the following components
#include<stdio.h > :--- Preprocessor diretive
void main (){ :---- Exeution beginsher
printf ("HELLO WORLD ") :---- pushing output to console
getch (); :-- termination after any key is pressed
comments in C programming
(i) single line ---- // this is a single line comment
(ii) Multi line ----- /* This is a multi line comment */
program the comment on "C"
/*Name : Hello world
Author : Cyber security technical knowledge...
*/
#include <studio.h> // Preprocessor directive
void main() //main funtion
{
printf("HELLO WORLD") // print function
getch():
}
0 Comments