Use the \a escape sequence to sound a beep to signal something - C Language Basics

C examples for Language Basics:printf

Introduction

The \a sequence represents the "bell" character.

Demo Code


#include <stdio.h>

int main(void)
{
  printf("Be careful!!\n\a");
  return 0;// ww  w  . j av a 2  s.  c  o  m
}

Result


Related Tutorials