0

Can anyone help me to multiply two matrices using pointer? Why number 10 is multiplied scanf("%d",ptr2+i*10+j);??

https://code.sololearn.com/c59RA3g3eoIa/?ref=app

11th Mar 2020, 3:25 AM
Abin
Abin - avatar
3 Antworten
+ 6
Binayak Dhimal One more thing if you shared code made in Sololearn Playground better to write here with question it will help us to understand your problem. You can't write full code here because of limited character.
11th Mar 2020, 3:54 AM
A͢J
A͢J - avatar
+ 5
to multiply two matrices you need to access the values, what you wrote will only point to an address which is not there, do you know how to access a pointers value by dereferencing it?
11th Mar 2020, 3:35 AM
✳AsterisK✳
✳AsterisK✳ - avatar