please help me out in matrix multiplication using pointers in C++ and give me brief description about usage of pointers
a program of matrix multiplication using pointers in C++
Collapse
X
-
-
Pointers aren't that hard. You already know how to use them.
For example, let's say your house is located at 123 Fox Street. Now suppose you want to identify the kitchen in the house. In C/C++ that looks like:
Code:house.kitchen
Code:123 Fox Street ->kitchen
Code:struct House { struct kitchen { }; }; House house; House* ptr;
Code:ptr = &house;
By changing the address in ptr you can reuse the using ptr for different houses.
Lastly, if you know the address of the house, then you can refer to the house directly by de-referencing the pointer:
Code:(*ptr).kitchen /*same as house.kitchen */
Comment
Comment