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.
#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.
No Response to "First C program to print a line"
Post a Comment
leave a comment