<?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/">
  <channel>
    <title>DEV Community: M R Tuhin</title>
    <description>The latest articles on DEV Community by M R Tuhin (@m_rtuhin).</description>
    <link>https://dev.to/m_rtuhin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3288225%2F49780958-e674-4034-b98a-0c8e39b8eb47.jpg</url>
      <title>DEV Community: M R Tuhin</title>
      <link>https://dev.to/m_rtuhin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/m_rtuhin"/>
    <language>en</language>
    <item>
      <title>🧠 C Programming Data Types – One Shot Guide for Developers 🚀</title>
      <dc:creator>M R Tuhin</dc:creator>
      <pubDate>Sat, 12 Jul 2025 13:46:35 +0000</pubDate>
      <link>https://dev.to/m_rtuhin/c-programming-data-types-one-shot-guide-for-developers-31d0</link>
      <guid>https://dev.to/m_rtuhin/c-programming-data-types-one-shot-guide-for-developers-31d0</guid>
      <description>&lt;p&gt;Whether you're starting with C or brushing up your knowledge, understanding data types is foundational. Here's your quick yet deep dive into C Data Types—all in one shot! 💡&lt;/p&gt;

&lt;p&gt;📌 What are Data Types in C?&lt;br&gt;
Data types in C tell the compiler what kind of data a variable will store (e.g., integers, characters, floating points). They're essential for memory management, type checking, and operations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Filcmy48j47owa0ahg9ky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Filcmy48j47owa0ahg9ky.png" alt=" " width="790" height="286"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🔸 Type Modifiers&lt;br&gt;
C provides modifiers to adjust the size/range of base types:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;short int     // Smaller integer
long int      // Larger integer
unsigned int  // Only positive
signed int    // Includes negative

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🧪 Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;unsigned int age = 25;
short int temp = -30;
long int population = 1000000;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiek1dguquib7zxpm9wlb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiek1dguquib7zxpm9wlb.png" alt=" " width="694" height="275"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🔘 Enumeration (enum)&lt;br&gt;
Used to define a set of named constants.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;enum week {Mon, Tue, Wed};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkvn1ozrmnxevkxcezixw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkvn1ozrmnxevkxcezixw.png" alt=" " width="623" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjc788y29lxmduleoe29y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjc788y29lxmduleoe29y.png" alt=" " width="675" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;💡 Tips&lt;br&gt;
Always choose the smallest data type that fits your needs.&lt;br&gt;
Use sizeof() to check memory usage.&lt;br&gt;
Prefer unsigned when negative values are not needed for optimization.&lt;/p&gt;

&lt;p&gt;📘 Example Code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;stdio.h&amp;gt;

int main() {
    int age = 20;
    float gpa = 3.75;
    char grade = 'A';
    const int MAX = 100;

    printf("Age: %d\n", age);
    printf("GPA: %.2f\n", gpa);
    printf("Grade: %c\n", grade);
    printf("Max value: %d\n", MAX);

    return 0;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Final Words&lt;br&gt;
Understanding data types helps you write efficient, safe, and fast programs in C. Keep practicing by using different types in small programs.&lt;/p&gt;

&lt;p&gt;Got a question? Drop it in the comments! Happy Coding! 🔥&lt;/p&gt;

</description>
    </item>
    <item>
      <title>📘 Structure of a C Program – A Beginner's Guide</title>
      <dc:creator>M R Tuhin</dc:creator>
      <pubDate>Tue, 01 Jul 2025 18:01:33 +0000</pubDate>
      <link>https://dev.to/m_rtuhin/structure-of-a-c-program-a-beginners-guide-4jgo</link>
      <guid>https://dev.to/m_rtuhin/structure-of-a-c-program-a-beginners-guide-4jgo</guid>
      <description>&lt;p&gt;Programming in C starts with understanding the basic structure of a C program. It’s like learning the grammar of a new language — once you know how to form correct "sentences", writing code becomes a lot easier.&lt;/p&gt;

&lt;p&gt;In today’s post, we will explore the components of a typical C program, understand how each part works, and look at a complete example with explanation.&lt;/p&gt;

&lt;p&gt;📌 Table of Contents&lt;br&gt;
Introduction to C Program Structure&lt;/p&gt;

&lt;p&gt;Basic Building Blocks of a C Program&lt;/p&gt;

&lt;p&gt;Deep Dive into Each Section&lt;/p&gt;

&lt;p&gt;Full Example with Explanation&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;🔹 1. Introduction to C Program Structure&lt;br&gt;
A C program typically follows a structured format divided into several sections. Whether you write a simple "Hello, World!" or a complex algorithm, the base structure remains consistent.&lt;/p&gt;

&lt;p&gt;Understanding this structure helps you:&lt;br&gt;
Write clean and maintainable code&lt;br&gt;
Avoid common errors&lt;br&gt;
Debug programs more effectively&lt;/p&gt;

&lt;p&gt;🔹 2. Basic Building Blocks of a C Program&lt;br&gt;
Here are the main components of a standard C program:&lt;/p&gt;

&lt;p&gt;Documentation Section&lt;br&gt;
Preprocessor Directives&lt;br&gt;
Global Declarations&lt;br&gt;
main() Function&lt;br&gt;
User-defined Functions (Optional)&lt;/p&gt;

&lt;p&gt;🔎 3. Deep Dive into Each Section&lt;br&gt;
✅ 1. Documentation Section&lt;br&gt;
&lt;code&gt;// This program calculates the sum of two numbers&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
It contains comments explaining the program.&lt;br&gt;
Helps other developers (or your future self) understand what the code does.&lt;/p&gt;

&lt;p&gt;✅ 2. Preprocessor Directives&lt;br&gt;
&lt;code&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;These lines begin with # and are processed before compilation.&lt;/p&gt;

&lt;h1&gt;
  
  
  include tells the compiler to include standard libraries like stdio.h (for input/output functions).
&lt;/h1&gt;

&lt;p&gt;✅ 3. Global Declaration Sectio&lt;br&gt;
&lt;code&gt;int total; // global variable&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Variables declared outside main() or any function.&lt;br&gt;
Accessible throughout the entire program&lt;/p&gt;

&lt;p&gt;✅ 4. main() Function&lt;br&gt;
&lt;code&gt;int main() {&lt;br&gt;
    // code here&lt;br&gt;
    return 0;&lt;br&gt;
}&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Starting point of every C program.&lt;br&gt;
int before main() means it returns an integer (typically 0 for success).&lt;br&gt;
Body contains declarations and executable statements.&lt;/p&gt;

&lt;p&gt;✅ 5. User-defined Functions (Optional)&lt;br&gt;
&lt;code&gt;int add(int a, int b) {&lt;br&gt;
    return a + b;&lt;br&gt;
}&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Custom functions created to perform specific tasks.&lt;br&gt;
Helps break down complex problems into manageable parts.&lt;/p&gt;

&lt;p&gt;📌 Breakdown:&lt;br&gt;
Comment: Describes the program.&lt;br&gt;
Header File: Includes input-output support.&lt;br&gt;
Global Variable: result is used globally.&lt;br&gt;
Function Declaration &amp;amp; Definition: add() adds two numbers.&lt;br&gt;
main() Function: Execution starts here.&lt;/p&gt;

&lt;p&gt;🧠 5. Final Thoughts&lt;br&gt;
Learning the structure of a C program is the first step to mastering the language. As you move forward, you'll realize how this basic skeleton helps you write modular, scalable, and readable programs.&lt;/p&gt;

&lt;p&gt;✍️ Tip: Practice writing small programs from scratch, identifying each section clearly.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>🚀 Getting Started with C Programming: A Beginner’s Guide</title>
      <dc:creator>M R Tuhin</dc:creator>
      <pubDate>Mon, 23 Jun 2025 17:19:18 +0000</pubDate>
      <link>https://dev.to/m_rtuhin/getting-started-with-c-programming-a-beginners-guide-48d2</link>
      <guid>https://dev.to/m_rtuhin/getting-started-with-c-programming-a-beginners-guide-48d2</guid>
      <description>&lt;p&gt;✨ Introduction&lt;br&gt;
C is one of the most foundational programming languages. If you're just starting your journey into the world of coding, learning C will give you a solid understanding of how programming works at a low level. In this post, I’ll walk you through what C programming is, why you should learn it, and how to get started step by step.&lt;/p&gt;

&lt;p&gt;🔧 What is C Programming?&lt;br&gt;
C is a procedural programming language developed by Dennis Ritchie in 1972 at Bell Labs. It’s widely used for system software, operating systems, embedded systems, compilers, and more. Despite being old, it’s still extremely relevant and powerful.&lt;/p&gt;

&lt;p&gt;📌 Why Should You Learn C?&lt;br&gt;
Here are a few solid reasons:&lt;/p&gt;

&lt;p&gt;🧠 Helps you understand how memory works (pointers, arrays, etc.)&lt;/p&gt;

&lt;p&gt;🔄 Builds a strong foundation for learning other languages like C++, Java, or even Python.&lt;/p&gt;

&lt;p&gt;💻 Most embedded systems and low-level software are still written in C.&lt;/p&gt;

&lt;p&gt;⚙️ Great for understanding how software interacts with hardware.&lt;/p&gt;

&lt;p&gt;🛠 Prerequisites&lt;br&gt;
You don’t need to be an expert! Just basic computer knowledge and a willingness to learn.&lt;/p&gt;

&lt;p&gt;Recommended Tools:&lt;/p&gt;

&lt;p&gt;✅ Code::Blocks / Dev-C++ / VS Code&lt;/p&gt;

&lt;p&gt;✅ GCC compiler (MinGW on Windows)&lt;/p&gt;

&lt;p&gt;✅ Online IDEs: replit.com, programiz.com/c-programming&lt;/p&gt;

&lt;p&gt;📚 Topics You Should Learn (Step-by-Step)&lt;br&gt;
✅ Structure of a C Program&lt;/p&gt;

&lt;p&gt;✅ Header files &amp;amp; Preprocessors&lt;/p&gt;

&lt;p&gt;✅ Variables and Data Types&lt;/p&gt;

&lt;p&gt;✅ Operators (Arithmetic, Relational, Logical)&lt;/p&gt;

&lt;p&gt;✅ Control Statements (if, if-else, switch)&lt;/p&gt;

&lt;p&gt;✅ Loops (for, while, do-while)&lt;/p&gt;

&lt;p&gt;✅ Arrays &amp;amp; Strings&lt;/p&gt;

&lt;p&gt;✅ Functions&lt;/p&gt;

&lt;p&gt;✅ Pointers (basic to advanced)&lt;/p&gt;

&lt;p&gt;✅ Structures and Unions&lt;/p&gt;

&lt;p&gt;✅ File Handling&lt;/p&gt;

&lt;p&gt;💡 Sample Code: Hello World&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`#include &amp;lt;stdio.h&amp;gt;

int main() {
    printf("Hello, World!");
    return 0;
}`

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🧠 Tips for Beginners&lt;br&gt;
Practice small programs daily.``&lt;br&gt;
Try to understand what each line of code does.&lt;br&gt;
Use online compilers for quick testing.&lt;br&gt;
Debug your own errors—don't copy-paste blindly.&lt;br&gt;
Build mini-projects like a calculator, number guessing game, or student record system.&lt;/p&gt;

</description>
      <category>c</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
