对一个结构体型的自动(automatic)变量内部的域进行一次性初始化
struct s1
{
char *s;
int i;
struct s1 *p;
};
struct s1 a[] = { {"hello", 1, a}, {"C", 2, a+1}, {"C++", 3, a+2} };
<script type=text/javascript> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
struct s1
{
char *s;
int i;
struct s1 *p;
};
struct s1 a[] = { {"hello", 1, a}, {"C", 2, a+1}, {"C++", 3, a+2} };
<script type=text/javascript> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>