Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
451 views
in Information Technology by (72.7k points)
closed by
In C programming pointer arithmetic cannot be performed on which of the following?
1. Dangling pointer
2. Void pointer
3. Uninitialized pointer
4. Integer pointer

1 Answer

0 votes
by (121k points)
selected by
 
Best answer
Correct Answer - Option 2 : Void pointer

Void pointer: It is a specific pointer type – void * – a pointer that points to some data location in storage, which doesn’t have any specific type. Void refers to the type.

  • void pointers cannot be dereferenced. It can however be done using typecasting the void pointer
  • Pointer arithmetic is not possible on pointers of void due to lack of concrete value and thus size

Other Important Points

Dangling pointer: A pointer pointing to a memory location that has been deleted (or freed) is called dangling pointer.   

Uninitialized pointer : An uninitialized pointer stores an undefined value. A null pointer stores a defined value, but one that is defined by the environment to not be a valid address for any member or object.

NULL Pointer : NULL Pointer is a pointer which is pointing to nothing. In case, if we don’t have address to be assigned to a pointer  

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...