Pointers Questions and Answers

Take Exam

Pointers questions with answers are a crucial part of C programming preparation, often included in technical interviews and MCQ-based exams. Pointers are variables that store the memory address of other variables, making them fundamental to dynamic memory management and efficient program design. These C programming MCQ questions and answers help students understand pointer arithmetic, function pointers, arrays, and memory allocation. Commonly asked in placement exams by TCS, Infosys, and Wipro, mastering pointer concepts gives you a competitive edge in coding tests and programming interviews.

Pointers

Showing 10 of 217 questions

191. Which of the following pointer can not be dereferenced ?

  • int *
  • char *
  • float *
  • void *
Show Answer Report

192. Which of following is true ?

  • Address + Number = Address
  • Address + Address = Address
  • Address * number = address
  • None of these
Show Answer Report

193. When the pointer points beyond 64kb proess memory is called

  • Near pointer
  • Far pointer
  • Huge pointer
  • None of these
Show Answer Report

194. Page zise in ANSI C is decided based on

  • Paging
  • Disk block size
  • RAM size
  • None of these
Show Answer Report

195. What is  major difference between strcpy and strncpy ?

  • strcpy copy the whole string, but strncpy copy only number of haracters
  • strcpy copy null chracter but strncpy does not copy null character
  • strcpy copy a string but strcpy does not copy a string
  • None of these
Show Answer Report

196. Segment size in Turbo C is decided base on

  • Register size
  • Disk block size
  • Map to 20 bits physical address
  • None of these
Show Answer Report

197. when malloc allocate memory beyond 64kb memory in turbo C, at that itme memory model should be

  • small
  • Medium
  • Large
  • None of these
Show Answer Report

198. Which of following opeator is used to dereference a memory location ?

  • Indirection operator
  • Multiplication operator
  • Suppression operator
  • Graphics character
Show Answer Report

199. Address + 1 =

  • Next adress of its type
  • Next address
  • next segment address
  • None of these
Show Answer Report

200. If pointer is capable of pointing to kernel area of Linux, then

  • Program should be compiled in user rea
  • Program should be compiled in OS area
  • Program should be compiled in Kernal area
  • None of these
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test