Pointer in C Language - Quiz

  • AA pointer can be dereferenced to access its value
  • BA regular variable cannot be passed to a function
  • CA pointer can only store integer values
  • DA regular variable does not require initialization
  • AA pointer that can point to two different memory locations
  • BA pointer that stores a floating-point value
  • CA pointer that points to another pointer
  • DA pointer that can store two integer values
  • AA reference is a type of pointer
  • B A pointer can be reassigned to point to a different memory location, while a reference cannot
  • CA reference must be initialized when it is declared, while a pointer does not have to be
  • DA pointer is a copy of the value it points to, while a reference is an alias for the value it refers to
  • AA const pointer cannot be dereferenced, while a pointer to a const can
  • BA const pointer cannot be reassigned to point to a different memory location, while a pointer to a const can
  • CA const pointer points to a const object, while a pointer to a const can point to a non-const object
  • DA const pointer and a pointer to a const are equivalent in C