Multiple choice softskills creativity

Output??? #include void OS_HP-UX_print() { printf("HP-UX-HewlettPack");} int main() { OS_HP-UX_print(); return 0; }

  1. HP-UX-HewlettPack

  2. Error

  3. HP-UX_HewlettPack

  4. none

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

C function names cannot contain hyphens. The identifier OS_HP-UX_print is interpreted as OS_HP minus UX_print, which is invalid syntax. This causes a compilation error. Option A would be valid if the function were named OS_HP_UX_print with underscores. Hyphens are subtraction operators, not valid identifier characters.