Hi, last time we had a homework where we should create 3 functions, one that fills an array (2d) randomly, the other one where we sorted diagonally the array and finally the third one where we print it out. This time i have to change the type of the program to a call by reference using pointers and addresses. here's my code, can somebody help me fix the errors ?
Error 1 error C2440: '=' : cannot convert from 'int *' to 'int' c:\users\sergegharib\documents\visual studio 2012\projects\consoleapplication26\consoleapplication26\source.cpp 20 1 ConsoleApplication26
4 IntelliSense: a value of type "int *" cannot be assigned to an entity of type "int" c:\Users\SergeGharib\Documents\Visual Studio 2012\Projects\ConsoleApplication26\ConsoleApplication26\Source.cpp 20 14 ConsoleApplication26