Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwvax!umn-d-ub!halam2 From: halam2@umn-d-ub.D.UMN.EDU (Haseen Alam) Newsgroups: comp.lang.c Subject: Re: How do I make my program beep. Message-ID: <3519@umn-d-ub.D.UMN.EDU> Date: 6 Jun 90 00:58:16 GMT References: <3472@umn-d-ub.D.UMN.EDU> <1990May27.000808.13551@utzoo.uucp> <361@necssd.NEC.COM> Reply-To: halam2@ub.d.umn.edu (Haseen Alam) Organization: University of Minnesota, Duluth Lines: 37 >I think Haseen was asking why the program > > main() { printf("hello world\a\n"); } > >prints > "hello worlda" > >instead of > "hello world" and then beeping. > [stuff deleted ...] > > main() { printf("hello world\7\n"); } Thank you Mark, you just hit the bulls eye. Maybe it was a trivial question for most C programmers. But apparantly there are a few of us who are still novice, and the net seems a relatively efficient way to get answers to most questions. Specially if the books and the local guru's are of no help. One other quick question. Will '\7' still work on an ANSI compiler? On behalf of me and others that I've helped with this same question, thanks again to all the guys who replied. Bye. Haseen. .--------------------------------------------------------------------. | Haseen Ibne Alam Tel: (218)-728-2139 | | email : halam1@ub.d.umn.edu or halam@cola.d.umn.edu | `--------------------------------------------------------------------' -- .--------------------------------------------------------------------. | Haseen Ibne Alam Tel: (218)-728-2139 | | email : halam1@ub.d.umn.edu or halam@cola.d.umn.edu | `--------------------------------------------------------------------'