Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Why is winsound not working in this website?

+3 votes
asked Nov 26, 2025 by 3180133 SNITHIK VENGALA (150 points)

Why is winsound not working in this website ?Actually I am creating a timer code you know so i want to produce sound after the timer is done

1 Answer

0 votes
answered Nov 27, 2025 by Peter Minarik (101,420 points)
The code you write is running on a server. Somewhere. In the "Cloud". The code is not run on your machine, so the sound would not come from your machine.

Unless you create an HTML file, that is interpreted by the browser running on your machine...

If you copy the code and compile it and run it on your machine, then you're good.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...