Is this normal or can it be considered improper to return a data item pointer constnot constfrom const struct? What is the danger of not returning a pointer constas shown below?
const
const struct
widget_t * widget_child(const widget_t * parent) { if (!parent) return NULL; return parent->child; }
const const -qualified struct , . , C ., , () , (- /) .
struct
const -qualified, C , , . .
. ( , ). const. . . .
const C. , , : const . const readonly, C.
readonly
, , , .
: , .
Source: https://habr.com/ru/post/1535199/More articles:Resolution of Norwegian and special letters when checking email - phpStop function after start after start - javascriptMultiPeer MCNearbyBrowserService Crashing - iosHow does `try` behave in Parsec? - haskellHow to get the point angle from the center point? - pythonHow to get Integer.MAX_VALUE value in Java without using Integer class - javaUndefined method '+' for rspec. What does it mean? - ruby | fooobar.comDifference between python readline () and Java class Scanner nextLine () - javaCelery refuses to accept marijuana by default, should it be turned off? - pythonКак распаковать файл в IsolatedStorage в приложении Windows Phone 8? - c#All Articles