Author: anujsharma

Arrays in C

1️⃣ What Is an Array? An array is a collection of variables of the same type, stored contiguously in memory. Instead of creating individual variables like: You can use an array: ✔️ Arrays make it easy to handle multiple values with a single name. 2️⃣ Why Use Arrays? 3️⃣ Declaring an Array Syntax: Example: 4️⃣ […]

Transitioning from Functional to Class Components in React: A Comprehensive Tutorial

In this tutorial, we will explore the class components in React for those who are already familiar with functional components. Class components were the primary way of creating components in React before the introduction of functional components and Hooks. Although functional components are more commonly used today, understanding class components can be valuable when working […]

Conditionals in C

1️⃣ What Are Conditionals? Conditionals let your program make decisions.You can tell the program: 👉 “If this condition is true, do something. Otherwise, do something else.” 2️⃣ The if Statement Syntax: 🛠 Example: 3️⃣ The if-else Statement Use else when you want to do something different if the condition is false. Syntax: 🛠 Example: 4️⃣ […]

Loops in C

1️⃣ What Is a Loop? A loop lets your program repeat a block of code multiple times. 💡 For example:👉 Print numbers 1 to 5👉 Keep asking the user for input until they enter 0 Without loops, you’d have to write the same code over and over. 2️⃣ Types of Loops in C Loop Type […]

Linear Algebra for Machine Learning

🎯 Goal: Help you understand and use vectors, matrices, and dot products — the building blocks behind ML models like linear regression, neural networks, and PCA. 🧱 1. What’s a Vector? ✅ Definition: A vector is just an ordered list of numbers — like a row or a column. In ML: 🧰 2. What’s a […]

struct in C

1️⃣ What Is a struct? A struct (structure) in C is a user-defined data type that allows you to group different types of variables under one name. 👉 Think of it as a box that can hold multiple variables of different types. 🔑 Why Use struct? Without struct, if you want to store details of […]