Pointer in C Language - Quiz

  • A A const pointer cannot be dereferenced, while a pointer to a const can
  • B A const pointer cannot be reassigned to point to a different memory location, while a pointer to a const can
  • C A const pointer points to a const object, while a pointer to a const can point to a non-const object
  • D A const pointer and a pointer to a const are equivalent in C
  • A <code>int x = &amp;y;</code>
  • B <code>int *x = y;</code>
  • C <code>int &amp;x = y;</code>
  • D <code>int *x = &amp;y;</code>
  • A A pointer that can point to two different memory locations
  • B A pointer that stores a floating-point value
  • C A pointer that points to another pointer
  • D A pointer that can store two integer values
  • A A data type
  • B A memory address
  • C A keyword
  • D A function
  • A Not possible
  • B Possible
  • C Depends on the return value
  • D Depends on the # of arguments
  • A A pointer that points to a non-existent memory location
  • B A pointer that has not been initialized
  • C A pointer that points to the first memory location in the system
  • D A pointer that points to the end of the system memory
  • A A reference is a type of pointer
  • B A pointer can be reassigned to point to a different memory location, while a reference cannot
  • C A reference must be initialized when it is declared, while a pointer does not have to be
  • D A pointer is a copy of the value it points to, while a reference is an alias for the value it refers to