Whats the difference between:
pp = malloc(m*sizeof(int)) <--- I understand this
and
pp = **int malloc (m*sizeof(int)) <--- but not this ?
The second example is illegal syntax, maybe you meant this? pp = (int**) malloc (m*sizeof(int))
The first example is ok in C language but not in C++, which requires the return value of malloc() to be typecast to the appropriate type of variable. Other than the typecast they both are identical.
And BTW you shouldn't expect people to respond so quickly to a question.
This is all I have to say about the topic title.
http://catb.org/~esr/faqs/smart-questions.html#urgent
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.