0
#include<iostream>
#include<iomanip>
using namespace std;

int main(){
      float **A;
      int m,n;

}

This program is incomplete . I just want to know what's the meaning and use of float **A . Can anyone tell me.

Ash Ketch
  • 17
  • 3
  • What is your level of understanding? Would you know the meaning of `float *A`? – JaMiT Feb 27 '21 at 06:37
  • [See here.](https://cdecl.org/?q=float+**A%3B) – costaparas Feb 27 '21 at 06:47
  • @JaMiT The meaning of this from my understanding is that we are declaring an float type pointer A . – Ash Ketch Feb 27 '21 at 06:59
  • @AshKetch Well, "pointer to float" is a better phrasing than "float type pointer". From here, it should not be too big a leap to read `float **A` as `(float *) *A`, a pointer to [a pointer to float] called `A`. I'll leave the rest to the linked duplicate. – JaMiT Feb 27 '21 at 11:03

1 Answers1

0

It is a pointer to a pointer. As Ali said, it is just like simulating a two-dimensional array. enter image description here

JaMiT
  • 14,422
  • 4
  • 15
  • 31
  • No, no. At best, a *pointer-to-pointer* can *simulate* a two dimensional array, but a *pointer-to-pointer* has nothing to do with an array at all. Full stop. – David C. Rankin Feb 27 '21 at 06:46