Sunday, 26 June 2016

A sample C program for finding out odd and even numbers (in turbo c):

#include<stdio.h>    
#include<conio.h>
void main()
{
 int no;
clrscr();
printf("\nEnter any number:");
scanf("%d",&no);
if(no%2==0)
printf("\nNumber is even");
else
printf("\nNumber is odd");
getch();
}

Tuesday, 26 April 2016

Structure of a C Program

Any C program comprises of one or more sections. It is as follows:

Documentation Section
Link Section 
Definition Section
Global Declaration
main() function
{
            Declaration part;
            Executable part;
}

Subprogram section
Function-1
Function-2

Welcome to my Blog!

Welcome to my new Blog, guys. This blog is created for people who wanna learn C programming in a short span of time, but still efficiently. First of all you need a computer to write and execute C programs on it, which is obvious. So, here are the minimum requirements you need to have before you start learning.

1.      Turbo C compiler to write and execute your programs. There are many other compilers you would find, but this is the smallest and easiest to use.
2.      A computer.
3.      A hell lot of patience.
4.      Brain!

So, I hope you have all these requirements along with you. So, lets get started!