次のようなコードがあります。
const char menu23[] = "2.3. ";
const char menu24[] = "2.4. ";
const char menu25[] = "2.5. ";
const char menu26[] = "2.6. ";
const char menu27[] = "2.7. ";
const char menu28[] = "2.8. ";
MenuEntry menu[] = // MenuEntry is a struct
{
{menu23, MENU2_OPTIONS, 22, 24, 23, 0, 0, 0}, // 23
{menu24, MENU2_OPTIONS, 23, 25, 2, 0, 0, 0}, // 24
{menu25, MENU2_OPTIONS, 24, 26, 0, 0, 0, 0}, // 25
{menu26, MENU2_OPTIONS, 25, 27, 0, 0, 0, 0}, // 26
{menu27, MENU2_OPTIONS, 26, 28, 0, 0, 0, 0}, // 27
{menu28, MENU2_OPTIONS, 27, 29, 0, 0, 0, 0} // 28
}
これと交換できますか?
MenuEntry menu[] = // MenuEntry is a struct
{
{"2.3. ", MENU2_OPTIONS, 22, 24, 23, 0, 0, 0}, // 23
{"2.4. ", MENU2_OPTIONS, 23, 25, 2, 0, 0, 0}, // 24
{"2.5. ", MENU2_OPTIONS, 24, 26, 0, 0, 0, 0}, // 25
{"2.6. ", MENU2_OPTIONS, 25, 27, 0, 0, 0, 0}, // 26
{"2.7. ", MENU2_OPTIONS, 26, 28, 0, 0, 0, 0}, // 27
{"2.8. ", MENU2_OPTIONS, 27, 29, 0, 0, 0, 0} // 28
}
機能的な違いはありますか?