Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
In C, why is the void pointer useful in C Language? When would you use it in C Language?
Home
C Plus Plus
In C, why is the void pointer useful in C Language? When would you use it in C Language?
asked
Mar 12, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
In C, why is the void pointer useful in C Language? When would you use it in C Language?
#c-language-void-pointer
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 15, 2020
by
SakshiSharma
(
32.2k
points)
The void pointer is useful because it is a generic pointer that any pointer can be cast into
and back again without loss of information.
Related questions
0
votes
Q: What is a far pointer in C Language? Where we use it in C Language?
asked
Mar 12, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-language-pointer
0
votes
Q: What is a NULL Pointer in C Language? Whether it is same as an uninitialized pointer in C Language?
asked
Mar 12, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-language-null-pointer
0
votes
Q: What are the ways to a null pointer that can use in the C programming language?
asked
Mar 17, 2020
in
C Plus Plus
by
SakshiSharma
(
32.2k
points)
#c-language-c-programming
0
votes
Q: What is a pointer on a pointer in C programming language?
asked
Mar 17, 2020
in
C Plus Plus
by
SakshiSharma
(
32.2k
points)
#c-language-pointer-of-pointer
0
votes
Q: What is pointer to a pointer in C Language?
asked
Mar 17, 2020
in
C Plus Plus
by
rajeshsharma
(
23.9k
points)
#c-language-pointers
0
votes
Q: How pointer variables are initialized in C Language?
asked
Mar 12, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-language-pointer-initialization
0
votes
Q: What is generic pointer in C in C Language?
asked
Mar 12, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-language-generic-pointers
0
votes
Q: What is near pointer in C Language?
asked
Mar 12, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-language-near-pointer
0
votes
Q: What is a normalized pointer, how do we normalize a pointer in C Language?
asked
Mar 12, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-language-normalized-pointers
0
votes
Q: What is a huge pointer in C Language?
asked
Mar 12, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-language-huge-pointer
0
votes
Q: What are the uses of a pointer in C Language?
asked
Mar 10, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-language-pointer0use
0
votes
Q: What is a pointer in C Language?
asked
Mar 10, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-pointers
0
votes
Q: Why is it necessary to give the size of an array in an array declaration in C Language?
asked
Mar 17, 2020
in
C Plus Plus
by
rajeshsharma
(
23.9k
points)
#c-language-array-of-array
0
votes
Q: Out of fgets() and gets() which function is safe to use and why in C Language?
asked
Mar 10, 2020
in
C Plus Plus
by
rahuljain1
(
6.5k
points)
#c-language-fgets
#c-language-gets
+1
vote
Q: Which of the following is correct about this pointer in C++?
asked
Oct 19, 2022
in
C Plus Plus
by
AdilsonLima
(
6.3k
points)
cplusplus-interview-questions-answers
...