Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question

Pointer type void

void* a; // pointer variable with unspecified target type
  • Assignment from any pointer type to void* valid
  • [...] address arithmetic on void* because size of elements unknown
  • Cast to non-void pointer required before usage:
double* d[10];

a = &d;
/*
↓ Derefence double* */
* (double*) a = 3.2;
/*    ↑ Cast a to double*  */
Answer
No

Question

Pointer type void

void* a; // pointer variable with unspecified target type
  • Assignment from any pointer type to void* valid
  • [...] address arithmetic on void* because size of elements unknown
  • Cast to non-void pointer required before usage:
double* d[10];

a = &d;
/*
↓ Derefence double* */
* (double*) a = 3.2;
/*    ↑ Cast a to double*  */
Answer
?

Question

Pointer type void

void* a; // pointer variable with unspecified target type
  • Assignment from any pointer type to void* valid
  • [...] address arithmetic on void* because size of elements unknown
  • Cast to non-void pointer required before usage:
double* d[10];

a = &d;
/*
↓ Derefence double* */
* (double*) a = 3.2;
/*    ↑ Cast a to double*  */
Answer
No
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
Pointer type void void* a; // pointer variable with unspecified target type Assignment from any pointer type to void* valid No address arithmetic on void* because size of elements unknown Cast to non-void pointer required before usage: double* d[10]; a = &d; /* ↓ Derefence double* */ * (double*) a = 3.2; /*

Original toplevel document (pdf)

owner: pavestonelaboringuntitled - (no access) - 02 C Programming.pdf, p48

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.