<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									C / C++ - Hack The Forum				            </title>
            <link>https://www.hacktheforum.com/c-c/</link>
            <description>Hack The Forum Discussion Board</description>
            <language>en</language>
            <lastBuildDate>Sun, 31 May 2026 09:45:04 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Single-line comment in C Programming Language</title>
                        <link>https://www.hacktheforum.com/c-c/single-line-comment-in-c-programming-language/</link>
                        <pubDate>Sat, 08 Nov 2025 06:55:52 +0000</pubDate>
                        <description><![CDATA[A single-line comment is used to write short notes or explanations in your C code.It helps make the code more readable and document what each part does, but the compiler ignores it during co...]]></description>
                        <content:encoded><![CDATA[<p>A <strong data-start="159" data-end="182">single-line comment</strong> is used to write short notes or explanations in your C code.<br data-start="243" data-end="246" />It helps <strong data-start="255" data-end="286">make the code more readable</strong> and <strong data-start="291" data-end="323">document what each part does</strong>, but the compiler <strong data-start="342" data-end="353">ignores</strong> it during compilation.</p>
<p><strong>Syntax</strong></p>
<pre contenteditable="false">// This is a single-line comment
</pre>
<ul data-start="441" data-end="608">
<li data-start="441" data-end="485">
<p data-start="443" data-end="485">Starts with <strong data-start="455" data-end="485">two forward slashes (<code data-start="478" data-end="482">//</code>)</strong></p>
</li>
<li data-start="486" data-end="562">
<p data-start="488" data-end="562">Everything written <strong data-start="507" data-end="538">after <code data-start="515" data-end="519">//</code> on the same line</strong> is treated as a comment</p>
</li>
<li data-start="563" data-end="608">
<p data-start="565" data-end="608">The compiler <strong data-start="578" data-end="598">does not execute</strong> that part</p>
</li>
</ul>
<p> </p>
<p><strong>Example 1: Simple Comment</strong></p>
<pre contenteditable="false">#include &lt;stdio.h&gt;

int main() {
    // This program prints Hello, World!
    printf("Hello, World!");
    return 0;
}
</pre>
<p>The comment <code data-start="830" data-end="868">// This program prints Hello, World!</code> is ignored by the compiler.</p>
<p><strong>Output:</strong></p>
<pre contenteditable="false">Hello, World!
</pre>
<p>Example 2: Inline Comment</p>
<p>You can also place a single-line comment <strong data-start="978" data-end="999">after a statement</strong> on the same line.</p>
<pre contenteditable="false">int x = 10;  // Assign 10 to variable x
</pre>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/c-c/">C / C++</category>                        <dc:creator>kajal</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/c-c/single-line-comment-in-c-programming-language/</guid>
                    </item>
				                    <item>
                        <title>What are variables in C/C++?</title>
                        <link>https://www.hacktheforum.com/c-c/what-are-variables-in-c-c/</link>
                        <pubDate>Tue, 23 Sep 2025 22:18:25 +0000</pubDate>
                        <description><![CDATA[When you write a program in C or C++, you need a way to store and manipulate data. This is where variables and data types come into play.

Variable 
A variable is simply a named storage l...]]></description>
                        <content:encoded><![CDATA[<blockquote>
<p><span>When you write a program in C or C++, you need a way to store and manipulate data. This is where variables and data types come into play.</span><span></span></p>
</blockquote>
<p><span>Variable </span></p>
<p>A variable is simply a named storage location in memory that holds a value.</p>
<p> </p>
<p> </p>
<p><span>Think of it like a container where you can put data, retrieve it, or change it during the execution of your program.<br /></span></p>
<pre contenteditable="false">data_type variable_name = value;</pre>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/c-c/">C / C++</category>                        <dc:creator>kajal</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/c-c/what-are-variables-in-c-c/</guid>
                    </item>
				                    <item>
                        <title>What is a function in C</title>
                        <link>https://www.hacktheforum.com/c-c/what-is-a-function-in-c/</link>
                        <pubDate>Sun, 16 Mar 2025 15:50:15 +0000</pubDate>
                        <description><![CDATA[A function is a block of code that performs a specific task. Functions are used to break down complex problems into smaller, manageable parts, making the code more organized, reusable, and e...]]></description>
                        <content:encoded><![CDATA[<p data-start="0" data-end="322"><strong data-start="8" data-end="20">A function</strong> is a block of code that performs a specific task. Functions are used to break down complex problems into smaller, manageable parts, making the code more organized, reusable, and easier to understand. A function in C allows you to execute a particular piece of code multiple times without rewriting it.</p>
<h3 data-start="324" data-end="366">Key Characteristics of Functions in C:</h3>
<ol data-start="367" data-end="727">
<li data-start="367" data-end="463"><strong data-start="370" data-end="385">Reusability</strong>: You can call a function multiple times from different parts of your program.</li>
<li data-start="464" data-end="604"><strong data-start="467" data-end="481">Modularity</strong>: Functions help break a program into smaller, more manageable chunks, making it easier to debug, maintain, and understand.</li>
<li data-start="605" data-end="727"><strong data-start="608" data-end="623">Abstraction</strong>: You can use functions to hide complex logic, presenting a simple interface to the rest of the program.</li>
</ol>
<h3 data-start="729" data-end="752">Function Structure:</h3>
<p data-start="753" data-end="801">A function in C consists of the following parts:</p>
<ol data-start="802" data-end="1217">
<li data-start="802" data-end="906"><strong data-start="805" data-end="820">Return Type</strong>: Specifies the type of value the function will return (e.g., <code data-start="882" data-end="887">int</code>, <code data-start="889" data-end="896">float</code>, <code data-start="898" data-end="904">void</code>).</li>
<li data-start="907" data-end="977"><strong data-start="910" data-end="927">Function Name</strong>: The name used to identify and call the function.</li>
<li data-start="978" data-end="1101"><strong data-start="981" data-end="995">Parameters</strong> (optional): A list of variables that the function will take as inputs (known as parameters or arguments).</li>
<li data-start="1102" data-end="1217"><strong data-start="1105" data-end="1122">Function Body</strong>: The block of code that defines what the function does. This is enclosed in curly braces <code data-start="1212" data-end="1216">{}</code>.</li>
</ol>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/c-c/">C / C++</category>                        <dc:creator>kajal</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/c-c/what-is-a-function-in-c/</guid>
                    </item>
				                    <item>
                        <title>What is an array in C</title>
                        <link>https://www.hacktheforum.com/c-c/what-is-an-array-in-c/</link>
                        <pubDate>Sun, 16 Mar 2025 15:49:07 +0000</pubDate>
                        <description><![CDATA[An array is a collection of elements, all of the same type, stored in contiguous memory locations. It allows you to store multiple values of the same data type under a single variable name. ...]]></description>
                        <content:encoded><![CDATA[<p data-start="0" data-end="312">An <strong data-start="9" data-end="18">array</strong> is a collection of elements, all of the same type, stored in contiguous memory locations. It allows you to store multiple values of the same data type under a single variable name. Arrays are used when you need to store a fixed number of values of the same type and access them using an index.</p>
<h3 data-start="314" data-end="353">Key Characteristics of Arrays in C:</h3>
<ol data-start="354" data-end="708">
<li data-start="354" data-end="478"><strong data-start="357" data-end="371">Fixed Size</strong>: The size of the array must be defined at compile time, and it cannot be changed during program execution.</li>
<li data-start="479" data-end="596"><strong data-start="482" data-end="505">Zero-based Indexing</strong>: Array indices start from 0. For an array of size <code data-start="556" data-end="559">n</code>, the valid indices are <code data-start="583" data-end="586">0</code> to <code data-start="590" data-end="595">n-1</code>.</li>
<li data-start="597" data-end="708"><strong data-start="600" data-end="615">Homogeneous</strong>: All elements in an array must be of the same data type, such as all integers or all floats.</li>
</ol>
<h3 data-start="710" data-end="744">Syntax for Declaring an Array:</h3>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">data_type array_name;</pre>
</div>
</div>
<ul data-start="788" data-end="962">
<li data-start="788" data-end="855"><strong data-start="790" data-end="805"><code data-start="792" data-end="803">data_type</code></strong>: The type of data (e.g., <code data-start="831" data-end="836">int</code>, <code data-start="838" data-end="845">float</code>, <code data-start="847" data-end="853">char</code>).</li>
<li data-start="856" data-end="898"><strong data-start="858" data-end="874"><code data-start="860" data-end="872">array_name</code></strong>: The name of the array.</li>
<li data-start="899" data-end="962"><strong data-start="901" data-end="917"><code data-start="903" data-end="915">array_size</code></strong>: The number of elements the array will hold.</li>
</ul>
<h3 data-start="964" data-end="976">Example:</h3>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">int numbers; // Declares an array of 5 integers</pre>
</div>
</div>
<p data-start="1038" data-end="1149">Here, <code data-start="1044" data-end="1053">numbers</code> is an array that can store 5 integers. You can access these integers using indices from 0 to 4.</p>
<h3 data-start="1151" data-end="1177">Initializing an Array:</h3>
<p data-start="1178" data-end="1233">You can initialize an array at the time of declaration.</p>
<h4 data-start="1235" data-end="1274">Example 1: Explicit Initialization</h4>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">int numbers = {1, 2, 3, 4, 5};</pre>
</div>
</div>
<h4 data-start="1319" data-end="1390">Example 2: Implicit Initialization (Size Determined Automatically)</h4>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">int numbers[] = {1, 2, 3, 4, 5}; // Compiler automatically sets size to 5</pre>
</div>
</div>
<h4 data-start="1476" data-end="1523">Example 3: Partially Initializing an Array</h4>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">int numbers = {1, 2}; // The remaining elements will be initialized to 0</pre>
</div>
</div>
<h3 data-start="1611" data-end="1640">Accessing Array Elements:</h3>
<p data-start="1641" data-end="1747">You can access or modify elements in the array by using the index of the element. The index starts at <code data-start="1743" data-end="1746">0</code>.</p>
<h4 data-start="1749" data-end="1762">Example:</h4>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">int numbers = {1, 2, 3, 4, 5}; printf("%d", numbers); // Output will be 3, as array indices start at 0 numbers = 10; // Modifies the third element (index 2) printf("%d", numbers); // Output will now be 10</pre>
</div>
</div>
<h3 data-start="2002" data-end="2031">Multi-dimensional Arrays:</h3>
<p data-start="2032" data-end="2214">C also allows multi-dimensional arrays, where you can create arrays of arrays. The most common example is a <strong data-start="2140" data-end="2152">2D array</strong> (array of arrays), often used to represent matrices or grids.</p>
<h4 data-start="2216" data-end="2241">Example of 2D Array:</h4>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">int matrix = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} };</pre>
</div>
</div>
<p data-start="2319" data-end="2445">Here, <code data-start="2325" data-end="2333">matrix</code> is a 2D array with 3 rows and 3 columns. To access an element, you need to specify both row and column indices:</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">printf("%d", matrix); // Output will be 6 (second row, third column)</pre>
</div>
</div>
<h3 data-start="2532" data-end="2552">Important Notes:</h3>
<ul data-start="2553" data-end="2885">
<li data-start="2553" data-end="2718"><strong data-start="2555" data-end="2571">Array Bounds</strong>: Accessing an array with an index outside of its defined range results in <strong data-start="2646" data-end="2668">undefined behavior</strong>, which can lead to errors or unexpected results.</li>
<li data-start="2719" data-end="2885"><strong data-start="2721" data-end="2735">Array Size</strong>: In C, the size of an array is fixed once defined, and this cannot be changed dynamically (unless using dynamic memory allocation, e.g., <code data-start="2873" data-end="2883">malloc()</code>).</li>
</ul>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/c-c/">C / C++</category>                        <dc:creator>kajal</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/c-c/what-is-an-array-in-c/</guid>
                    </item>
				                    <item>
                        <title>What is the difference between int, float, double, and char in C</title>
                        <link>https://www.hacktheforum.com/c-c/what-is-the-difference-between-int-float-double-and-char-in-c/</link>
                        <pubDate>Sun, 16 Mar 2025 15:45:56 +0000</pubDate>
                        <description><![CDATA[In C, int, float, double, and char are different data types used to store different kinds of values. Here&#039;s a breakdown of the differences:
1. int (Integer):

Purpose: Used to store whole...]]></description>
                        <content:encoded><![CDATA[<p data-start="0" data-end="147">In C, <code data-start="6" data-end="11">int</code>, <code data-start="13" data-end="20">float</code>, <code data-start="22" data-end="30">double</code>, and <code data-start="36" data-end="42">char</code> are different data types used to store different kinds of values. Here's a breakdown of the differences:</p>
<h3 data-start="149" data-end="176">1. <strong data-start="156" data-end="175"><code data-start="158" data-end="163">int</code> (Integer)</strong>:</h3>
<ul data-start="180" data-end="605">
<li data-start="180" data-end="267"><strong data-start="182" data-end="193">Purpose</strong>: Used to store whole numbers (i.e., integers without any decimal points).</li>
<li data-start="271" data-end="369"><strong data-start="273" data-end="281">Size</strong>: Typically 4 bytes on most systems (but can vary depending on the system architecture).</li>
<li data-start="373" data-end="549"><strong data-start="375" data-end="384">Range</strong>: The range of values <code data-start="406" data-end="411">int</code> can hold depends on the system, but generally, it is from -2,147,483,648 to 2,147,483,647 for a 4-byte <code data-start="515" data-end="520">int</code> (using 32-bit architecture).</li>
<li data-start="553" data-end="605"><strong data-start="555" data-end="566">Example</strong>:
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">int num = 5;</pre>
</div>
</div>
</li>
</ul>
<h3 data-start="607" data-end="650">2. <strong data-start="614" data-end="649"><code data-start="616" data-end="623">float</code> (Floating-point number)</strong>:</h3>
<ul data-start="654" data-end="1021">
<li data-start="654" data-end="795"><strong data-start="656" data-end="667">Purpose</strong>: Used to store numbers with a fractional part (decimals). It is used when precision is not as critical, and space is a concern.</li>
<li data-start="799" data-end="839"><strong data-start="801" data-end="809">Size</strong>: Typically 4 bytes (32 bits).</li>
<li data-start="843" data-end="962"><strong data-start="845" data-end="854">Range</strong>: Can store numbers from approximately 1.5 × 10⁻⁴⁵ to 3.4 × 10³⁸ with about 6-7 decimal digits of precision.</li>
<li data-start="966" data-end="1021"><strong data-start="968" data-end="979">Example</strong>:
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">float pi = 3.14;</pre>
</div>
</div>
</li>
</ul>
<h3 data-start="1023" data-end="1084">3. <strong data-start="1030" data-end="1083"><code data-start="1032" data-end="1040">double</code> (Double-precision floating-point number)</strong>:</h3>
<ul data-start="1088" data-end="1466">
<li data-start="1088" data-end="1222"><strong data-start="1090" data-end="1101">Purpose</strong>: Used for storing floating-point numbers with greater precision than <code data-start="1171" data-end="1178">float</code>. It is used when more accuracy is required.</li>
<li data-start="1226" data-end="1266"><strong data-start="1228" data-end="1236">Size</strong>: Typically 8 bytes (64 bits).</li>
<li data-start="1270" data-end="1393"><strong data-start="1272" data-end="1281">Range</strong>: Can store numbers from approximately 5.0 × 10⁻³²⁷ to 1.7 × 10³⁰⁷ with about 15-16 decimal digits of precision.</li>
<li data-start="1397" data-end="1466"><strong data-start="1399" data-end="1410">Example</strong>:
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">double pi = 3.141592653589793;</pre>
</div>
</div>
</li>
</ul>
<h3 data-start="1468" data-end="1498">4. <strong data-start="1475" data-end="1497"><code data-start="1477" data-end="1483">char</code> (Character)</strong>:</h3>
<ul data-start="1502" data-end="1867">
<li data-start="1502" data-end="1569"><strong data-start="1504" data-end="1515">Purpose</strong>: Used to store a single character (usually one byte).</li>
<li data-start="1573" data-end="1611"><strong data-start="1575" data-end="1583">Size</strong>: Typically 1 byte (8 bits).</li>
<li data-start="1615" data-end="1806"><strong data-start="1617" data-end="1626">Range</strong>: Can store values from -128 to 127 (signed) or 0 to 255 (unsigned) if used as a numeric type. When used as a character, it represents a single character, e.g., 'A', 'b', '3', etc.</li>
<li data-start="1810" data-end="1867"><strong data-start="1812" data-end="1823">Example</strong>:
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-">
<pre contenteditable="false">char letter = 'A';</pre>
</div>
</div>
</li>
</ul>
<h3 data-start="1869" data-end="1900"> </h3>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/c-c/">C / C++</category>                        <dc:creator>kajal</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/c-c/what-is-the-difference-between-int-float-double-and-char-in-c/</guid>
                    </item>
				                    <item>
                        <title>Calculate relative time in C#</title>
                        <link>https://www.hacktheforum.com/c-c/calculate-relative-time-in-c/</link>
                        <pubDate>Tue, 11 Jun 2024 02:32:25 +0000</pubDate>
                        <description><![CDATA[Given a specific DateTime value, how do I display relative time, like:

2 hours ago
3 days ago
a month ago]]></description>
                        <content:encoded><![CDATA[<p>Given a specific<span> </span><code>DateTime</code><span> </span>value, how do I display relative time, like:</p>
<ul>
<li><code>2 hours ago</code></li>
<li><code>3 days ago</code></li>
<li><code>a month ago</code></li>
</ul>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/c-c/">C / C++</category>                        <dc:creator>Code Master</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/c-c/calculate-relative-time-in-c/</guid>
                    </item>
				                    <item>
                        <title>operator const char* return</title>
                        <link>https://www.hacktheforum.com/c-c/operator-const-char-return/</link>
                        <pubDate>Sat, 27 Apr 2024 08:17:52 +0000</pubDate>
                        <description><![CDATA[if i can have something like this on one line?return (ss.str().c_str());orreturn ((ss.str()).c_str())
 

 

operator const char* ()
{
ostringstream ss;
ss &lt;&lt; Name &lt;&lt; &quot; &quot; ...]]></description>
                        <content:encoded><![CDATA[<div id="CH_i1242169" class="dwhat"> if i can have something like this on one line?<br /><br />return (ss.str().c_str());<br />or<br />return ((ss.str()).c_str())<br />
<div class="auto"> </div>
</div>
<div> </div>
<div>
<pre contenteditable="false">operator const char* ()
{
ostringstream ss;
ss &lt;&lt; Name &lt;&lt; " " &lt;&lt; MiddleInitial &lt;&lt; ". " &lt;&lt; LastName &lt;&lt; endl;
FullName = ss.str();
return FullName.c_str();
}</pre>
</div>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/c-c/">C / C++</category>                        <dc:creator>Ronny</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/c-c/operator-const-char-return/</guid>
                    </item>
				                    <item>
                        <title>What is use of Function in C++</title>
                        <link>https://www.hacktheforum.com/c-c/what-is-use-of-function-in-c/</link>
                        <pubDate>Mon, 15 Apr 2024 14:32:05 +0000</pubDate>
                        <description><![CDATA[A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function.
A function is a set of statements that takes input, does some speci...]]></description>
                        <content:encoded><![CDATA[<p><span>A function is </span><em>a block of code which only runs when it is called</em><span>. You can pass data, known as parameters, into a function.</span></p>
<p><span>A function is </span><em>a set of statements that takes input, does some specific computation, and produces</em><span> output. </span></p>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/c-c/">C / C++</category>                        <dc:creator>kajal</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/c-c/what-is-use-of-function-in-c/</guid>
                    </item>
							        </channel>
        </rss>
		