insulting three star programming. but why is something like this
void function(type ***a);
caller()
{
type **a;
function(&a);
}
bad and something like this
type ** function()
caller()
{
type **a = function();
}
good?
I wanted to know because since introduction to linked list, i have always used an extra star to directly change the variable after allocation/deallocation to avoid the sentinel node special case handling.
dont use reddit to answer your questions, the community is toxic and noob
this depends A LOT on what you want to do
Обсуждают сегодня