if the source don't exist "default" in "Switch case" syntax ?
this isn't error, but warning.
for example,
int test = 10;
printf("here 1");
switch (test) {
case 1:
break;
}
printf("here 2");
result console
here 1
here 2
you can show in this case, don't need to "default".
i think the compiler does write automatically.
but, this is warning.
i recommend to write "default".
Subscribe to:
Post Comments (Atom)
Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore!
🏙️ Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore! 🚨 Are you thinking about buying an apartment in 2025? 🏢 It’...
-
ERROR : Please ensure that your setting of VIRTUAL-RUNTIME_init_manager (systemd) matches the entries enabled in DISTRO_FEATURES kiwon...
-
How the Yocto system works Processing from Developer to Yocto Developer Create .Metadata .Metadata = .bb + .patch ...
-
MySQL workbench Error: Failed to Connect to MySQL at 127.0.0.1:3306 with user name MySQL install error step 1. create connections step 2. ...
No comments:
Post a Comment