+ 5

How to use \a for audible bell?

Which header file is used?

13th May 2019, 6:58 AM
Vicky Kumar 🇮🇳
Vicky Kumar 🇮🇳 - avatar
1 Odpowiedź
+ 3
The header file that contain functions that prints to an output stream (like stderr or stdout), you need to #include <stdio.h> Then try printf("\a"); You should hear an alert sound! :-) If you don't, it could be because your operating system sounds are disabled or configured in such a way that no sound is audible.
13th May 2019, 2:36 PM
Komodo64
Komodo64 - avatar