Dear Members,
Today we will discuss about C program statements and also give you some examples....
SO FRIEND LETS START OUR LESSON
- C program Statements:-
For Example:-
The printf() function is used to print a message or output of the program. Every statement of C program must be terminated with semicolon (;). It is called statement terminator. If statement terminator (;) is missing at the end of any statement, then the following error message will be reported by C compiler during compiling process.
Statement Missing
C language is a case sensitive language. Each statement of C program is normally written in lowercase letters. However, variable names or user-defined function names with uppercase letters can be used in C program.
C program is written below to clear the computer screen and to print a message on the screen.
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
printf("Welcome");
}
In the above program, two statements are written in the body of main() function. Each statement ends with semicolon ( ; ).
A statement containing operators and variables in C is called an Expression. C operators connects constants in c and variables to form expressions.
ReplyDelete