First C program to print a line


First C program to print a line


C is a 3rd generation or mid-level language.C is so popular popular for its qualities.It's have lots of built in functions and operation to solve problems. Lets start with a C program.

 1.To show a line as output you have to use printf();
Syntax of printf():
 printf("  ");
  • The text you to show as output should be write  within double qoutation.
  • The function should be close with semi-colon;
  • printf should be in lowercase.
2.Lets start with the prgram :
 #include<stdio.h>
#include<conio.h>
void main()
{
      printf("This is my first c program with borland c");
getch();
}
3. Now run the program and see the results.
First c program

No Response to "First C program to print a line"

Post a Comment

leave a comment