Skip to content

Commit

Permalink
Update 1intro.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan0602 authored May 19, 2024
1 parent 3103349 commit 7156038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WikiSyllabus/KTU/2019_Scheme/S1-S2/EST102/1intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ <h1 id="introduction-to-c-programming"><a class="header" href="#introduction-to-
<p><strong>'C'</strong> is a procedural programming language. It was initially developed by Dennis Ritchie in the year 1972. It was mainly developed as a system programming language to write an operating system. The main features of the C language include low-level memory access, a simple set of keywords, and a clean style, these features make C language suitable for system programmings like an operating system or compiler development. Many later languages have borrowed syntax/features directly or indirectly from the C language. Like syntax of Java, PHP, JavaScript, and many other languages are mainly based on the C language. C++ is nearly a superset of C language (Few programs may compile in C, but not in C++).</p>
<h2 id="beginning-with-c-programming"><a class="header" href="#beginning-with-c-programming"><strong>Beginning with C programming:</strong></a></h2>
<h3 id="1-structure-of-a-c-program"><a class="header" href="#1-structure-of-a-c-program">1. <strong>Structure of a C Program:</strong></a></h3>
<p>After the above discussion, we can formally assess the structure of a C program. By structure, it is meant that any program can be written in this structure only. Writing a C program in any other structure will hence lead to a Compilation Error. The structure of a C program is as follows:</p>
<p>After the above discussion, we can formally assess the structure of a C program. By structure, it is meant that any program can be written in this structure only. Writing a C program in any other structure will hence lead to a Compilation Error. The structure of a C program:</p>
<p><img src="assets/c_structure.png" alt="" /></p>
<h3 id="2-header-files-inclusion"><a class="header" href="#2-header-files-inclusion">2. <strong>Header Files Inclusion:</strong></a></h3>
<p>The first and foremost component is the inclusion of the Header files in a C program. A header file is a file with extension .h which contains C function declarations and macro definitions to be shared between several source files. Some of C Header files: 1. stdio.h – Defines core input and output functions 2. stdint.h – Defines exact width integer types. 3. stdlib.h – Defines numeric conversion functions, pseudo-random network generator, memory allocation 4. string.h – Defines string handling functions 5. math.h – Defines common mathematical functions</p>
Expand Down

0 comments on commit 7156038

Please sign in to comment.