C Programing – How to Code a Program in C Language
Everyone has
studied C, either in school or in college. It is the basic programing
language taught in student life. C programing is one of the oldest
but effective computer language used worldwide. It is clean, simple
and easy to get.
Coding in C
requires the understanding of datatypes, data structure, pointers,
loop and syntax available in C library. To write a simple program of
hello world, you can use -
#include <stdio.h>
int main()
{
print f(“hello
world”);
return 0;
}
This simple code
demonstrate how C programming is done. The execution of a C program
starts from the main() function. The printf() is a library function
to send formatted output to the screen. In this program, the printf()
displays Hello, World! text on the screen. The return 0; statement is
the "Exit status" of the program. In simple terms, program
ends with this statement.
Comments
Post a Comment