<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Struct on P01NT</title><link>https://outofsrvc.github.io/en/tags/struct/</link><description>Recent content in Struct on P01NT</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 13 Aug 2026 10:00:00 +0300</lastBuildDate><atom:link href="https://outofsrvc.github.io/en/tags/struct/index.xml" rel="self" type="application/rss+xml"/><item><title>Structures</title><link>https://outofsrvc.github.io/en/cworkshop/structures/</link><pubDate>Thu, 13 Aug 2026 10:00:00 +0300</pubDate><guid>https://outofsrvc.github.io/en/cworkshop/structures/</guid><description>&lt;p>Bismillah.&lt;/p>
&lt;p>In this article we cover the &lt;strong>Structure&lt;/strong> — the first user-defined data type.&lt;/p>
&lt;h2 id="struct-basics">Struct Basics&lt;/h2>
&lt;p>We know C ships with standard data types: &lt;code>int&lt;/code>, &lt;code>char&lt;/code>, &lt;code>float&lt;/code>, &lt;code>double&lt;/code>&amp;hellip;&lt;/p>
&lt;p>What if we want to represent a &lt;strong>real-world object&lt;/strong> — like a person with a &lt;strong>name&lt;/strong> and an &lt;strong>age&lt;/strong>? We need to mix a string (array of characters) with an int inside one object.&lt;/p>
&lt;p>That is where the &lt;strong>Structure&lt;/strong> comes in: it resembles an array, but it &lt;strong>groups variables of multiple types&lt;/strong> (whereas arrays hold one type). Since the developer designs it, it counts as a &lt;strong>User Defined Data Type&lt;/strong>.&lt;/p></description></item></channel></rss>