Number Guessing Game in C

How random works? #include <stdlib.h> int r = rand(); Generates a pseudo-random number between 0 and RAND_MAX. Without seeding, the sequence is the same every run. 🌱 Seeding with srand() #include <time.h> srand(time(0)); srand() sets the starting point (seed) for rand(). time(0) and time(NULL) both give current time in seconds since 1970. Using time as a seed ensures different sequences each run. “By using the current time as a seed, we make the numbers look random every time the program runs.” Random Numbers in a Range To generate a number between min and max: ...

Pyramid Patterns in C

Pyramid Top to Bottom Print pyramid patterns from top to bottom. #include <stdio.h> int main() { int n; printf("Enter Number of rows:"); scanf("%d", &n); for (int i = 0; i < n; i++) { for (int s = 0; s < n - i - 1; s++) printf(" "); for (int j = 0; j < 2 * i + 1; j++) { printf("*"); } printf("\n"); } return 0; } Upside Pyramid Print upside-down pyramid patterns step by step. #include <stdio.h> int main() { int n; printf("Enter Number of rows:"); scanf("%d", &n); for (int i = 0; i < n; i++) { for (int s = 0; s < i; s++) printf(" "); for (int j = 0; j < 2 * (n - i) - 1; j++) { printf("*"); } printf("\n"); } return 0; } Hollow Upside Pyramid #include <stdio.h> int main() { int n ; printf("Enter Number of rows:"); scanf("%d", &n); for (int i=0; i< n; i++){ for(int s=0; s<i;s++) printf(" "); for(int j=0; j<2*(n-i)-1; j++){ if(j==0||i==0 ||j==2*(n-i)-2 ) printf("*"); else printf(" "); } printf("\n"); } return 0; } Pyramid with Space Top to bottom #include <stdio.h> int main() { int n ; printf("Enter Number of rows:"); scanf("%d", &n); for (int i=0; i< n; i++){ for(int s=0; s<n-i-1;s++) printf(" "); for(int j=0; j<2*i+1; j++){ if(j==0||i==n-1 ||j==2*i) printf("*"); else printf(" "); } printf("\n"); } return 0; }

Dynamic Memory uses

Create Lets create an integer array of 3 elements. Dynamic Memory behaves like an array, and its dataType specified by the type of pointer. int size = 3 * sizeof(*int); int *ptr = malloc(size); Now we can use 0,1,2 indexes to access the Memory; ptr[0] =5; // we can also use `*ptr` while default it point to 1st index(0) ptr[2] = 4; printf("%d \n", ptr[2]); We can also use calloc(3, sizeof(*ptr)) ...

Prefix Postfix

Prefix & Postfix Operators in C | ++ & – Explained Iso_C_1999_definition

Array 2D & 3D

2D array basics, index calculation, value assignment, এবং 3D array coding step by step। 2D array 3D array

Function Practice

ভিডিওতে আপনি শিখবেন: Function define করা Function ব্যবহার করা (Use) Return value বোঝা Pass value / Argument passing Sum calculation উদাহরণ

Loop, Break & Continue Explained

এই ভিডিওতে আমরা শিখব C Programming-এ লুপ (for, while, do-while) এর কাজ, এবং কীভাবে break ও continue স্টেটমেন্ট কাজ করে পুরো বিষয়টি animation দিয়ে ভিজ্যুয়ালি বোঝানো হয়েছে, যাতে সহজে মনে থাকে। What you’ll learn in this video: Basics of loops in C (for, while, do-while) Detailed explanation of break & continue Step-by-step Bangla explanation with animation Easy visualization for beginners and students

DataType Selection in C | ডেটা টাইপের মূল ধারণা

Everything in a computer’s memory is stored as 0s and 1s, but why do we need to choose a data type? C Data Types In the C language, the basic data types are: char → a single character or a small number int → a whole number (integer) float → a decimal number with small precision double → a decimal number with higher precision What you’ll learn in this video: What a data type is and why it’s important Basic C data types: char, int, float, double How to choose the right data type for different values Differences between char, string, and decimal numbers Simple practical examples explained clearly

Installing Code::Blocks in Linux mint

Learn how to install and set up Code::Blocks for C programming in Linux— perfect for beginners! We’ll also cover how to fix the “GNU GCC Compiler Missing” problem and create your first C project. Clean visuals, smooth animations, and easy-to-follow explanations.

Git Install & Global Config

এই ভিডিওটি Git সিরিজের Part 3। এখানে আমরা Windows ও Linux এ Git install করা এবং GitHub account ব্যবহার করে global config সেট করা দেখেছি। First download and install git from here. Configuration steps Check Git version: git --version Set username: git config --global user.name "Your Name" Set email: ...