C examples for Language Basics:printf
The \a sequence represents the "bell" character.
#include <stdio.h> int main(void) { printf("Be careful!!\n\a"); return 0;// ww w . j av a 2 s. c o m }