C Pointers Interview Questions

  • Pointer is a derived data type? True/False
  • What is the role of pointer in c-programming language?
  • What is the difference between int and int* ?
  • What do you mean by base address of a variable?
  • Pointer always manipulates data using base address only? True/ False
  • What is the difference between '&' and '*' operators?
  • Always size of the pointer varies from compiler to compiler? True/False
  • What is the size of pointer on 16bit processor?
  • What is the size of pointer on 32 bit compiler?
  • What is the size of pointer on 64 bit CPU /OS?
  • Why we can't use %d format specifier for printing the address?
  • In c-language pointer type and variable type must be same? True/False
  • Can '*' operator behavior changes depends on pointer type? True/False
  • What do you mean by suspicious pointer conversion?
  • What is the role of memory model in pointers creation?
  • What is NULL pointer? what is its role?
  • What is void pointer? What is its role?
  • Is the pointer and function pointer are same? True /False
  • All arithmetic operators can apply on pointer? True /False
  • Two addresses can be subtracted? True /False
  • Which of the following sentences are True
      • Address+Address
      • Address*Address
      • Address/Address
      • Address%Address
      • Address-Address
      • ++Address
      • Adress++
      • --Address
  • Can we apply bit-wise operators on pointers? True/False.
  • Can we apply relational and logical operators on pointers? True/false
  • What is the difference b/w ++pointer and pointer+1?
  • How to compare two near pointers?
  • What data is used to compare far pointers?
  • Normalization values are used for comparison of huge pointers? True/False
  • Is it possible to apply arithmetic operations on void pointer? True /False
  • Void pointer is a type less pointer? True/False