Pointer in C Language

Programming Language > C Programming Language

Test your understanding of pointers in C programming with these multiple choice questions. Learn about the different operations and applications of pointers in C and become a proficient C programmer. Take the quiz now!

In this section you will learn MCQ question and answers of Pointer in C Language.


➲ Pointer in C Language - Quiz

  • A 0
  • B Compiler Error
  • C 10
  • D Garbage value
  • A atnyla
  • B Null Pointer Exception
  • C Compiler error
  • D Unexpected results due to dangling pointers
  • A Not possible
  • B Possible
  • C Depends on the return value
  • D Depends on the # of arguments
  • A A data type
  • B A memory address
  • C A keyword
  • D A function
  • A A pointer can be dereferenced to access its value
  • B A regular variable cannot be passed to a function
  • C A pointer can only store integer values
  • D A regular variable does not require initialization
  • A int x = &y;
  • B int *x = y;
  • C int &x = y;
  • D int *x = &y;
  • 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 Performing arithmetic operations on the values of pointers
  • B Performing arithmetic operations on the memory addresses stored in pointers
  • C Converting pointers to integers and performing arithmetic operations on them
  • D Converting integers to pointers and performing arithmetic operations on them
  • 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 pointer that points to a specific memory location in a program
  • B A pointer that stores the address of a function in memory
  • C A pointer that can be used to access the arguments of a function
  • D A pointer that can only be used to call functions that return void
  • 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
  • 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