<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>c program tutorial | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/c-program-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 10 Dec 2022 04:28:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>General Structure of C program</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/general-structure-program/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/general-structure-program/#comments</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Mon, 12 Sep 2011 15:26:02 +0000</pubDate>
				<category><![CDATA[C Tutorials]]></category>
		<category><![CDATA[basic structure of c]]></category>
		<category><![CDATA[structure of c program]]></category>
		<category><![CDATA[c program tutorial]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=2158</guid>

					<description><![CDATA[<p>Basic Structure of a C program contains following sections, Documentation Section Link Section Definition Section Global Declaration Section main() { Declaration Section Executable part } Subprogram section Function 1 Function 2 . . function n The Documentation Section consists of a set of comment lines giving the name of the program and other details. The</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/general-structure-program/">General Structure of C program</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Basic Structure of a C program contains following sections,</p>
<pre lang="c" escaped="true">
Documentation Section
Link Section
Definition Section
Global Declaration Section
main()
{
Declaration Section
Executable part
}
Subprogram section
Function 1
Function 2
.
.
function n</pre>
<p><strong>The Documentation Section</strong> consists of a set of comment lines giving the name of the program and other details.</p>
<p><strong>The Link Section</strong> provides instructions to the compiler to link functions from the system library. </p>
<p><strong>The Definition Section</strong> defines all symbolic constants.</p>
<p><strong>The Global Declaration Section:</strong> There are some variables and those variables are declared in this section that is outside of all functions. </p>
<p><strong>main() function:</strong> Every C program must have one main function section. This section contains two parts, declaration and executable part.<br />
<strong>Declaration Part</strong> declares all the variables used in the executable part.<br />
There should be at least one statement in the <strong>executable part</strong> which contains instructions to perform certain task.<br />
The declaration and executable part must appear between the opening and closing braces. All statements in the declaration part should end with the semicolon.</p>
<p>The <strong>Subprogram Section</strong> contains all the user defined functions that are called in the main function. </p>
<p><strong>Example Program:</strong></p>
<pre lang="c" escaped="true" line="1">
/*Documentation Section: program to find the area of circle*/
#include "stdio.h"   /*link section*/
#include "conio.h"  /*link section*/
#define PI 3.14     /*definition section*/
float area;          /*global declaration  section*/
void main()
{
float r;                /*declaration part*/
printf("Enter the radius of the circle\n");   /*executable part starts here*/
scanf("%f",&amp;r);
area=PI*r*r;
printf("Area of the circle=%f",area);
getch();
}
</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/general-structure-program/">General Structure of C program</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c-tutorials-c-tutorials/general-structure-program/feed/</wfw:commentRss>
			<slash:comments>14</slash:comments>
		
		
			</item>
	</channel>
</rss>
