Isn't double[][] equivalent to **double?

前端 未结 9 1395
心在旅途
心在旅途 2020-12-29 02:37

I\'m asking this because my program have two functions to multiply matrices, they multiply only 4x4 and 4x1 matrices. The headers are:

 double** mult4x1(doub         


        
9条回答
  •  有刺的猬
    2020-12-29 03:12

    No they definitely are not equivalent the former represents a 2D array of doubles while as latter represents a pointer to pointer to double.

提交回复
热议问题