Pages

» » Structure of a C program

By: X Byte Lab Posted date: 16:13 Comments: 1
                   C Program for beginners
keywords: Structure of a C program, STRUCTURE OF A C PROGRAM, structure of a c program, structure of a c++ program, c++ program structure,  how to write structure of a c program, how to write user friendly structure of a c program, user friendly structure of a c program for beginner, user friendly program, easy structure of a c program, user structure of a c program, c program to write user friendly structure of a c program, c language to write structure of a c program, c++ user structure of a c program, c++ structure of a c program,  structure, c program, c, c++

simplest program, simplest c or c++ program, easy program of c language, use c programming to hack, learn JavaScript, learn Perl, learn html, learn css, learn, algorithm, c program for kid, c program, c++ program, easy c program, c program, first lesson in c program, learn c programming in 1 hour, x byte lab, xbyte, xbytelab, ashiq dey, author ashiq, author dey, easy way write c program, how to write a c program, googlegoogle love you, use google, best search engine google, make money with googlegoogle friendly, google seo, code x ,codex.blospot.in, codex-lab.blogspot, c language, subtract, earn money, sexy, girl, top most hacker, panty, ebook for c program, ebook to learn c, c ebook, c++ ebook.

Structure of a C program

        The structure of a C Program is quite different from other languages, but before writing the code(from other examples) you should know what to write , where to write, how to write and what the code signifies. So it is very important to know the structure of a typical C program.



  If you are new to C language then without wasting time 
Visit this linkBecause if you learn from beginning then only it will be beneficial for you and it will not take more than half an hour to learn the basics. 
To download application to write C/C++ program visit this link.
To get the list of all C programs for beginners visit this link.


C language does not actually follow any specific method of writing a program. It is a case sensitive language. All the statements must be written in lower case letters.  The structure of a C program is as follows.

Structure
Code*
<Header file>
#include<stdio.h>
<Global declaration>

main()
main()
{
{
<local variables>
int a,b;
<statements>
printf(“Hi”);
}
}
<sub programs – function blocks>

*Here only basic is shown, and we hope beginners will be able to follow this.

See other examples and compare with this to get a better idea of structure of C program.


1.      The header files or pre-processor directive give instruction to the compiler to include compiler options (#include), Marco substitution (#define) to substitute a constant for an identifier and conditional (#ifdef) directives.

2.    The main statement block and other blocks used in a c program are enclosed in braces{}

3.    Variables declared outside the main () are called global variables, are they can be used in the main program block and sub program block.

4.    Variables declared inside main() are called local variables, and they are used only in the blocking which they are declared. Sub programs/functions can also have local variables

5.    Any c program has coding in the form of letters and symbols. Normally documentation to the program is made by adding remarks or comment line enclosed in /*and */ OR by using // wherever necessary.

                                                keywords: Structure of a C program, STRUCTURE OF A C PROGRAM, structure of a c program, structure of a c++ program, c++ program structure,  how to write structure of a c program, how to write user friendly structure of a c program, user friendly structure of a c program for beginner, user friendly program, easy structure of a c program, user structure of a c program, c program to write user friendly structure of a c program, c language to write structure of a c program, c++ user structure of a c program, c++ structure of a c program,  structure, c program, c, c++

simplest program, simplest c or c++ program, easy program of c language, use c programming to hack, learn JavaScript, learn Perl, learn html, learn css, learn, algorithm, c program for kid, c program, c++ program, easy c program, c program, first lesson in c program, learn c programming in 1 hour, x byte lab, xbyte, xbytelab, ashiq dey, author ashiq, author dey, easy way write c program, how to write a c program, googlegoogle love you, use google, best search engine google, make money with googlegoogle friendly, google seo, code x ,codex.blospot.in, codex-lab.blogspot, c language, subtract, earn money, sexy, girl, top most hacker, panty, ebook for c program, ebook to learn c, c ebook, c++ ebook.


If you have any doubt then please comment here or visit our Facebook page c++ for beginner at this link and if you like this blog then please rate us below.




============================================================================================
Description:
The structure of a C Program is quite different from other languages, but before writing the code(from other examples) you should know what to write , where to write, how to write and what the code signifies. So it is very important to know the structure of a typical C program. This article provides lot of information to learn how to write the structure of a C Program.

«
Next
Newer Post
»
Previous
Older Post

1 comments:

Popular

Comments