in Technology by
What is the advantage of declaring void pointers?

1 Answer

0 votes
by

When we do not know what type of the memory address the pointer variable is going to hold, then we declare a void pointer for such.

Related questions

+1 vote
    What is the advantage of declaring void pointers in C-Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    What ais the use of void pointers?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    What is void or Generic pointers in C?...
asked Jan 21, 2021 in Technology by JackTerrance
0 votes
    What is the advantage of a void pointer in C?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    What is the advantage of pointers in C?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    If I have a UserControl: Foo.Bar.MyClass, I know I can reference it in XAML by declaring: xmlns: ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    I followed the accepted answer here to alter the order of items in a foreign key select list in my ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    I followed the accepted answer here to alter the order of items in a foreign key select list in my ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    In Javascript, I can do something like this let list = [1, 2, 3] let list2 = [4, 5, 6, ...list] And ... the += after declaring a list? Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    What Is The Purpose Of Declaring A Variable As Final? Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Can math operations be performed on a void pointer?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    What is the size of a void pointer in C?...
asked Jan 21, 2021 in Technology by JackTerrance
0 votes
0 votes
    int find(int i) { if(>1) j=find(j/10)+(j%10) else j=0; return j; void main() int i=1000 int k k=find(i): printf(“%d”, K) Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    int find(int j) { if(>1X j=find(j/ 10)+(%10); } else { j=0; return j; void main() int i=1000, int k; k=find(i); printf(“%d”, k); Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
...