typedef struct{
int*p;
}new;
void main(){
new *buffptr=malloc(sizeof(new));
buffptr->p;
}
my doubt is the above declaration in main function accesses the value of p and not the address of p. If I want to increment the address of p what should I do?
Vikrant_3 0 Newbie Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.