I have a few basic questions about 2D arrays, e.g.:
double bn[NNODES][NBASIS]
1-How is the declaration in C? And in Fortran?
2-The first [] is for the rows number and the second for columns, both for C and Fortran?
3- When using bn, e.g. bn[i][j], the "i" index is for rows and "j" is for columns? Both in C and Fortran?
4- How is the write/print function (both for C and Fortran) only for one (e.g. i=15) and entire row?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…