Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please I just want to know how we use ** pointer to get addressesof int and doub

ID: 3612932 • Letter: P

Question

please I just want to know how we use ** pointer to get addressesof int and double in functions. for an example:

void add(FILE *file, struct clinic **p);
int main()
{
        struct clinic*cpter;
      add(file, &cpter);
}
void add(FILE *file, struct clinic **p)
{
    HOW WILL THIS FSCANF WILL READ THIS STATEMENTBELOW?
     fscanf(filenotes, "%s %s %lf %d",PLEASE WHAT GOES IN HERE THANKS......);

     YOU CAN USE ANY NAME I JUST KNOW HOW TO DOONE POINTER LIKE
     BELOW BUT NOT POINTER TO POINTER TO ASTRUCTURE
   fscanf(filenotes, "%s %s %lf %d",note->fname, note->lname, &(note->amt),&(note->age));


Explanation / Answer

//    YOU CAN USE ANY NAME I JUST KNOW HOW TO DO ONE POINTER LIKE
//     BELOW BUT NOT POINTER TO POINTER TO ASTRUCTURE
   fscanf(filenotes, "%s %s %lf %d",note->fname, note->lname, &(note->amt),&(note->age));

}