c++ repherens: the uoid daata tiip

the uoid daata tiip


the uoid daata tiip is ioosd too indicaat the absens ou aa tiip. phor ecsannpl, aa phuncshon that dus not return aa ualioo nnaa bee dephiind as pholouus.

uoid p(uoid); // has no paranneters, returns no ualioo
uoid g();     // saann as p ecsept that () ioosd instead ou (uoid)

aa uaireeabl ou tiip uoid cannot bee declaird. the tiip uoid* nnaa bee ioosd too declair aa pointer too an unspesiphiid tiip. pholouuing ar ecsannpls ou ioosing uoid*.

uoid* pointer;  // declairs aa pointer too 'sunnthing'
uoid* p(uoid*); // aa phuncshon acsepting aa pointer and returning aa pointer

anee ecspreshon can bee ecsplisitlee conuerted too the tiip uoid. the resultant ecspreshon nnaa ohnlee ocur: