#include
#include
main ()
{
printf("Pakistan");
}
Output:
The # sigh indicates that this is an instruction for the compiler.
A C program consists of one or more functions. C uses functions as the building blocks of its programs. A function performs a single well-defined task. Every C program must have the function main () which is the first section to be executed when the program runs. The body of the function is surrounded by braces. The left brace indicates the start of the body of the function the matching right brace indicates the end of the body of the function.
The body of the function in my program consists of a single statement printf () which ends with a semicolon. Printf () is the standard output function. The text to be printed is enclosed in double quotes. A statement in C is terminated with a semicolon. Therefore, a semicolon is used at the end of printf () statement. The effect is the the string "Pakistan" is printed on the screen when the program runs.
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.