what is void pointer?

Answer Posted / sanjay bhosale

Void pointer is the pointer which can point to any type of variable.
e.g
int a=10;
float b=20.00f;
void *ptr=null;
ptr = &a;
ptr = &b;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the significance of scope resolution operator?

1136


What are the various types of control structures in programming?

817


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

1039


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

794


Explain what is a program flowchart and explain how does it help in writing a program?

883


What is the role of && operator in a program code?

808


What is indirection?

849


What is static memory allocation? Explain

831


How can I invoke another program or command and trap its output?

866


Why c is faster than c++?

812


Can you subtract pointers from each other? Why would you?

758


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

853


What is 02d in c?

845


What is getch () for?

894


What does *p++ do?

804