2D Arrays in One Shot | C Programming | Lecture 8

preview_player
Показать описание
In this video, Raghav Sir will teach you about 2D ARRAYS in DETAIL. This is Lecture 8 of the C Programming series. Topics covered are - syntax and declaration, output and input, meaning of 2D array and LOTS of questions. STRINGS will be covered in the next Lecture in detail, coming SOON.

So what are we waiting for?
Let us meet in the class!

If you are facing any trouble accessing the assignment or lesson plan, please re-login to your account on PW Skills website and try.

Are you finding the classes helpful?
Stay tuned for more!

PW Skills is announcing the launch of the following programs,

Binary Batch:- Java-with-DSA-&-System-Design (Java with DSA & System Design)

Sigma Batch:- Full-Stack-Web-Development (MERN Stack)

Impact Batch:- Data-Science-Masters (Full Stack Data Science)

Timestamps:-
00:00 Introduction
01:49 What and Why?
11:07 Declaration and Initialisation
19:03 ARRAY of Arrays
20:46 Output and Input using Loops
41:51 Ques 1 : WAP to store Roll No. and Marks of 4 students in a matrix
45:24 Ques 2: WAP to store 10 at every index in a 5x5 matrix
49:16 Ques 3 : Add 2 matrices
54:27 HW 1 : Add two matrices without using extra matrix
55:14 Ques 4 : Find the sum of a n*m matrix
1:00:43 HW 2 : Find the maximum and minimum element and their index in a matrix
1:01:57 HW 3 : Given matrix, find sum of rectangle formed by 2 coordinates (l1,r1) and (l2,r2)
1:06:15 HW 4 : Find the row with the maximum sum in a matrix
1:10:28 Ques 5 : Given matrix filled with 0s and 1s, find row with maximum 1s
1:17:45 Ques 6 : Print the transpose of a given matrix
1:27:24 Ques 7 : Store transpose of a given matrix in another matrix
1:33:30 Ques 8 : Convert a square matrix into its transpose without using extra matrix
1:58:16 Ques 9 : Rotate a matrix 90 degrees clockwise
2:11:33 **Ques 10 : Matrix MULTIPLICATION
3:17:51 Ques 11 : Wave printing - 1
3:27:31 HW 5 : Wave printing - 2
3:31:21 **Ques 12 : SPIRAL printing
4:18:10 HW 6 : Generate n*n matrix filled with numbers from 1 to n^2 in SPIRAL order
4:20:24 Maza aa gaya?

Рекомендации по теме
Комментарии
Автор

📗 Enroll Now in Decode Batches and become JOB READY:

CollegeWallahbyPW
Автор

00:02 2D arrays are discussed in this lecture
02:11 2D arrays can be used to store and manipulate tabular data.
07:00 2D Arrays store values in a two-dimensional grid
09:44 2D Arrays: Use row and column numbers to access elements and fill the array
16:02 2D Arrays allow for the storage and manipulation of data in a grid-like format.
18:16 Learn about 2D arrays in C programming.
24:23 Printing a 2D array in C programming
27:26 Using 2D arrays in C programming
34:44 2D Arrays in C Programming: Basics and Declaration
37:47 Understanding 2D arrays in C programming
44:32 The video discusses creating a 2D array in C programming and taking input from users for homework purposes.
49:20 Creating a third matrix by adding two 2D matrices
56:35 Adding elements of a 2D array in C programming
1:00:43 Finding the maximum and minimum elements in a 2D array
1:06:29 Understanding 2D Arrays in C programming
1:08:51 Finding the row with the maximum number of ones in a matrix
1:14:12 Understanding the concept of 2D arrays in C programming
1:17:59 Printing the transpose of a matrix in C programming
1:23:03 Printing a 2D matrix in reverse order in C programming.
1:26:39 Understanding 2D arrays and transposing them in C programming
1:33:16 Understanding the concept of transposing 2D arrays in C programming
1:37:09 Understanding the changes happening in a 2D array
1:43:49 Understanding the concept of transposing 2D arrays in C programming.
1:48:40 Swapping values in 2D arrays using C programming
1:55:02 Understanding 2D Arrays and Transposing a Matrix
1:58:28 Understanding 2D array transpose in C programming
2:06:13 Reversing a number using 2D arrays in C programming
2:11:10 Multiplication of 2D arrays in C programming.
2:15:30 Understanding 2D arrays and matrix multiplication in C programming
2:18:23 Understanding the concept of 2D arrays in C programming
2:23:53 Multiplying 2D arrays in C programming
2:25:50 Matrix multiplication in 2D arrays
2:30:11 Understanding 2D Arrays in C Programming
2:32:15 Multiplying two matrices does not always result in a bigger matrix
2:38:45 Multiplying 2D arrays in C programming
2:43:37 Understanding 2D arrays in C programming
2:49:52 2D arrays in C programming explained in one shot
2:52:56 Understanding 2D arrays and the concept of multiplication in C programming
2:57:35 Multiplying 2D arrays for matrix multiplication
2:59:41 Multiplication of 2D arrays in C Programming
3:04:34 Matrix multiplication in C programming.
3:07:08 2D Arrays in C programming - Writing and printing matrix elements
3:12:32 Matrix multiplication in C programming
3:14:44 2D arrays can be used to store and manipulate data in C programming.
3:20:40 Printing elements of a matrix in reverse order
3:23:14 Printing a 2D Array in reverse order using C programming
3:28:22 Printing 2D arrays column-wise in C programming
3:30:50 Printing a 2D array in a specific order
3:37:39 Printing minimum and maximum rows and columns in a 2D array, in reverse order
3:41:20 Printing 2D Arrays in C
3:47:13 Printing elements in a loop by following conditions
3:49:50 Understanding the concept of 2D arrays in C programming.
3:57:10 Understanding the logic of working with 2D arrays in C programming
4:01:14 The video explains the concept of 2D arrays in C programming.
4:08:37 Understanding the printing pattern in 2D arrays.
4:11:25 Understanding 2D arrays and their usage in C programming
4:16:30 Understanding 2D arrays in C programming
4:18:30 Creating and printing a matrix in C

taufiqueanwarkhan
Автор

Timestamps:-
00:00 Introduction
01:49 What and Why?
11:07 Declaration and Initialisation
19:03 ARRAY of Arrays
20:46 Output and Input using Loops
41:51 Ques 1 : WAP to store Roll No. and Marks of 4 students in a matrix
45:24 Ques 2: WAP to store 10 at every index in a 5x5 matrix
49:16 Ques 3 : Add 2 matrices
54:27 HW 1 : Add two matrices without using extra matrix
55:14 Ques 4 : Find the sum of a n*m matrix
1:00:43 HW 2 : Find the maximum and minimum element and their index in a matrix
1:01:57 HW 3 : Given matrix, find sum of rectangle formed by 2 coordinates (l1, r1) and (l2, r2)
1:06:15 HW 4 : Find the row with the maximum sum in a matrix
1:10:28 Ques 5 : Given matrix filled with 0s and 1s, find row with maximum 1s
1:17:45 Ques 6 : Print the transpose of a given matrix
1:27:24 Ques 7 : Store transpose of a given matrix in another matrix
1:33:30 Ques 8 : Convert a square matrix into its transpose without using extra matrix
1:58:16 Ques 9 : Rotate a matrix 90 degrees clockwise
2:11:33 **Ques 10 : Matrix MULTIPLICATION
3:17:51 Ques 11 : Wave printing - 1
3:27:31 HW 5 : Wave printing - 2
3:31:21 **Ques 12 : SPIRAL printing
4:18:10 HW 6 : Generate n*n matrix filled with numbers from 1 to n^2 in SPIRAL order
4:20:24 Maza aa gaya?

perfectshot
Автор

SIR MAZA AGYA, YOU'RE LITERALLY SUCH AN AMAZING TEACHER!!! ❤

psycos_
Автор

1:56:00 we can also use another method which is called as upper triangle way.
in second loop, we can add a condition if(j>i) then only swapping occurs otherwise loops continues, i think this method is much more simpler and easy to understand. thankyou sir for this amazing lecture.❣

QuickEnglishSnippet
Автор

Rest of 10 hour tutorial for whole c language rest in piece after seeing this much effort. Pw rocks always 🙂💐

divyanshujaiswal
Автор

sir i don't how to show you enough gratitude but genuinely thankyou so much.

Shrezal
Автор

Maza aa gya sir. Bahut badhiya lecture hai. Ab itna confidence aa gya hai ki lag rha rha hai apne batch me main hi top karunga.

ARUNKUMAR-zrfq
Автор

2:05:27 We can also do this by another method which is more easy to understand
include<iostream>
using namespace std;
int main(){
int n;
cout<<"Enter num of row and coloumb :";
cin>>n;
int arr[n][n];
cout<<"Enter all elements "<<endl;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cin>>arr[i][j];
}
}
//transpose
for(int i=0;i<n;i++){
for(int j=i;j<n;j++){
int temp=arr[i][j];
arr[i][j]=arr[j][i];
arr[j][i]=temp;
}
}
cout<<endl;
//rotate
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cout<<arr[i][n-j-1]<<" ";
}
cout<<endl;
}
return 0;
}

verdatfatima
Автор

Dear Sir, Please make more chapter tutorials on Dynamic memory, Structure, and File Handling. Thank U :)

samimsk
Автор

Thank you sirji, mast lectures banaye hai apne!

ShriyashPatil
Автор

Sir I don't have words to explain your efforts . Hats off to youuu . may you leads toward growth and success in your life.. so much respect to you sir God bless you

gracychauhan
Автор

Maza a gaya...sir mind blowing explainations best on youtube sir.
Respect++;

YashSharma-tfyu
Автор

Raghav bhaiya or PW team ko teh dil se Shukriya...❣️

anshulsharma
Автор

finally i get the best channel for my pps subject sir you explained in very clr way thank you sir

ishayay
Автор

Sir in question 8, we can also change a[i][j] to a[j][i] as it'll directly give output without even using temp or using swap method.

pri
Автор

best tutorial of c in youtube ever as per my opinion .i'll try many of tutorials but the logic building learn from only this series lectures 👌👌👌👌

M_junaid_Kadri
Автор

The question on 45.24 sec
Why sir solve this with the worst method ever
Just write another line in the for loop that arr[i][j]=10 and done with the required answer
Thanks a lot sir aapki wajah se thora bahut samjh me aane laga hai

Remainproductive
Автор

Super super excellent explanation sir you are the best coding teacher in the youtube ❤❤👏👏👏🙏🙏

anilkumar_
Автор

3:15:8, we can also print in that loop itself, there's no point is using in using another loop

AjEEtSinGH_