First Program

Google Advertisements

Prev Tutorial Next Tutorial

First Program

Programming in C language is very simple and it is easy to learn here i will show you how to write your first program. For writing C program you need Turbo C Editor. First you open TC and write code.

Example

#include<stdio.h>
#include<conio.h>

void main()
{
printf("This is my first program");
getch();
}

Output

This is my first program
  • After writing complete code save the program using F2
  • Save your code with .c extension for example: hello.c
  • After save the code you need to compile your code using alt+f9
  • Finally Run the program using clt+f9

Save C program

Save any C program using .c Extension with file name. For example your program name is sum, then it save with sum.c.

Syntax

filename.c

Compile and Run C Program

for compile any C program you just press alt+f9 , after compilation of your c program you press clt+f9 for run your C program.

Syntax

Compile -> alt+f9

Run -> clt+f9

Prev Tutorial Next Tutorial

Google Advertisements

Buy This Ad Space @$50 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Cloud computing is the on demand availability of computer system resources, especially data storage and computing power, without direct active management by the user. Cloud Computing Tutorial

College Projects Related to Java, AWT, C Projects for College, C++ Projects for College, Android Projects. Download Java C C++ Projects

Download Projects

Adsense Advertisements


Buy This ads Space 8076671483

Buy This Ad Space @$120 per Month, Ad Size 300X600 Contact on: hitesh.xc@gmail.com or 8076671483 Try this Keyword C++ Programs