C Programming basics

Status
Not open for further replies.

praka123

left this forum longback
Hi,
programmer guys please write a small introduction to C programming.this is for absolute nuts like me and other newbies.also explains why we should program using latest IDE's or gcc compiler and NOT to use turbo c antique compilers.the ISO standards etc.Will be thankful if you contribute.
Also only C Programming not C++.:)
 

a_k_s_h_a_y

Dreaming
this is first program

Code:
#include <stdio.h>  // Include this stdio text file because it contains some code required for using printf

main()  // Every program must have main function 
{
 printf("I Won't Participate in OS Wars");   // Every statement must be ended by ';'
}
Output
Code:
I Won't Participate in OS Wars
whatever follows after // is commenting in code.. compiler ignores it untill it encounters the new line character

to put a newline character just press ENTER !
 
Last edited by a moderator:
OP
praka123

praka123

left this forum longback
@akshay:I am always supporting the right thing- FOSS. :D I will participate in OS war threads.
 
Status
Not open for further replies.
Top Bottom