+ 1

Can someone help me?

Why the following statement is incorrect? struct s1 { struct s1 s; }; And this : struct s1 { struct s1 *s; }; is correct?

14th Jun 2017, 10:59 PM
I'm just a newbie
I'm just a newbie - avatar
2 Respostas
+ 4
Maybe can you specify to wich language is related your question ^^
14th Jun 2017, 11:03 PM
visph
visph - avatar
+ 2
Because C++ uses pointers in structs and making objects.
14th Jun 2017, 11:39 PM
omar khaled
omar khaled - avatar