C_57 Two Dimensional Array program 2 | Program to print Transpose of Matrix

preview_player
Показать описание
In this lecture we will discuss a C Program to print Transpose of a Matrix.

*********************************************

Connect & Contact Me:

Telegram Group Link: Jenny's Lectures
*******************************************

More Playlists:

Tags:
arrays in c, what is array, introduction to arrays in c, c programming, computer science, engineering, programming languages, c language, 2d arrays, two dimensional array in c

#cprogramming #coding #arraysinc #clanguage #jennyslectures
#2DarraysinC
#twodimensionalarrays
Рекомендации по теме
Комментарии
Автор

Ma'am 2 months back when I started coding, I could not understand anything. At that period thinking about coding gave me goosebumps. But 1 month back I discovered your channel and it was really kind of a blessing for me. You made my every doubt crystal clear. The way you explain each point makes the concept crystal clear. Really thank you, ma'am.❤x3000

tanishka
Автор

I think I m wasting my money in college because youtube and google is best way to clear our doubt and way better explained than college . Thank You😊😊

safalyakumbhare
Автор

I started coding in this month (September 2023) and i checked a lot of lectures and channels... but this one is best....i understand evrythg clearly...i will complete all the languages from here...one of my senior told me about this channel amd now im addicted to jk❤️...thank you so much mam ❤

izel_
Автор

A.o.A Mam....today the day of Hajj day for the Muslim...being a humanity .next day will be a Eid day..with the heart touching.i wish you Eid-ul-Azha

muhammadzakariya
Автор

Mam I just don't know how much thanks I should say to you, these videos are very very helpful. Thanks a million!

theenglishspeaker
Автор

why can't i find this channel before 2 years :)

stormbreaker
Автор

I think for the homework you gave us, it's just a matter of transposing the initial matrix as you did, but using printf to state that "b" is the transposed matrix.
Here is my code, Ma'am, and it worked :

#include <stdio.h>


int main ()
{


int a [2][3];
int i, j = 0;


printf ("Please enter numbers for Matrix :\n");

for (i = 0; i < 2; i ++)
{
for (j = 0; j < 3; j ++)
{
scanf ("%d", &a [i][j]);
}
}


printf ("The Matrix \"a\" is :\n");

for (i = 0; i < 2; i ++)
{
for (j = 0; j < 3; j ++)
{
printf ("%d\t", a [i][j]);
}
printf ("\n");
}


printf ("The Transposed Matrix \"b\" is :\n");

for (i = 0; i < 3; i ++)
{
for (j = 0; j < 2; j ++)
{
printf ("%d\t", a [j][i]);
}
printf ("\n");
}


return 0;
}

theromanianfox
Автор

Best Teacher forever ❤
Thanks Ma'am

PrateekMishra.
Автор

I am from iit but understand you better than my professor thanku you

knowledgeimprover
Автор

int rw_size, cl_size;
printf("Enter the Row size :");
scanf("%d", &rw_size);
printf("Enter the Column size :");
scanf("%d", &cl_size);
int arr[rw_size][cl_size];
printf("Enter the elements in an array :");
for(int i=0 ; i<rw_size ; i++){
for(int j=0; j<cl_size ; j++){
scanf("%d ", &arr[i][j]);
}
}
printf("Original Matrix is :\n");
for(int i=0 ; i<rw_size ; i++){
for(int j=0 ; j<cl_size ; j++){
printf("%d ", arr[i][j]);
}
printf("\n");
int transpose[cl_size][rw_size] ;

printf("Transpose of the matrix is :\n");
for(int i=0 ; i<cl_size ; i++){
for(int j=0 ; j<rw_size ; j++){
transpose[i][j] =arr[j][i];
printf("%d ", transpose[i][j]);
}
printf("\n");
}

mvdgqyc
Автор

Mam you are far better than my university teachers ❤

izmremj
Автор

Ma'am, I had to sign into google to tell you that you are doing a good job. I have not watched many of your lectures recently because of the holidays and I was bored with the material after about 50 lectures, but I hope to continue going! Thanks from Los Angeles, CA! God bless you!

javierv.
Автор

Pls make a video on* inverse of a matrix*

pratikdubey
Автор

Mam ....hello...super way of explaining coding methods in c ...your way of teaching making us to understand complicated things in easiest way ..thanks for sharing

sinusgp
Автор

we have to initialize b
Then printf("b=\n", b)

pullayithrisha
Автор

MA'AM.. PLEASE START MAKING VIDEOS ON FUNCTIONS IN C... REALLY FACING A LOT OF PROBLEMS WITH THIS... HOPE TO GET IT BEING CLEARED BY YOUR VIDEOS... PLZ UPLOAD FUCTIONS ()

JayasreeGhosh
Автор

this is what i coded for transpose. in this dimension of array can be variable(we can declare it at run time).

#include<stdio.h>

int main()

{
int a[100][100], b, c, i, j;
printf("\tTranspose of a Matrix!\n");
printf("Enter Dimension of Matrix : \n");
scanf("%d%d", &b, &c);
printf("Enter elements of Matrix : \n");
for ( i = 0; i < b; i++)
{
for ( j = 0; j < c; j++)
{
scanf("%d", &a[i][j]);
}

}
printf("Matrix formed by provided information is \n");
for ( i = 0; i < b; i++)
{
for ( j = 0; j < c; j++)
{
printf("%d\t", a[i][j]);
}
printf("\n");
}
printf("\nTranspose of the provided matrix is : \n");
for ( i = 0; i < c; i++)
{
for ( j = 0; j < b; j++)
{

printf("%d\t", a[j][i]);
}
printf("\n");
}


return 0;
}

itvineetkumar
Автор

Thanks ma'am for help us . Your teaching method is very easy and comfortable . I always understand your logic.

MdRubel-hrur
Автор

Ma'am you are the best teacher of me.

nobra
Автор

Ma'am, I didn't got any idea how to store elements of one matrix into another matrix ( as you told in this video at 12:16), can you please give some hint on this

gramawardsachivalayaminfo