Introduction to Programming

This blog assists in mastering C and C++ programming skills from basics to advanced levels.

Pages

  • My First C Program
  • Basic Concepts
  • Looping
  • Branching
  • Patterns
  • Arrays
  • Functions
  • File Management
  • Strings
  • Special C Programs
  • Flowchart
  • Algorithm
  • Structure
  • Pointer
  • RAPTOR
  • Interview Questions
  • Quizzes
  • Question Bank
  • Games
  • Security
  • Networking
  • C++ Programming
  • ઈન્ટરનેટનું સામાન્ય જ્ઞાન
  • Projects
  • Contact us

Friday, August 12, 2016

C program to ring a bell.

This program will play a beep sound.

 
#include<stdio.h>
int main()
{
  //following printf will ring a beep sound 3 times.

  printf("\a \a \a");
           
  //Note: Here \a stands for Alert
  //Each \a will ring a one beep sound

  return 0;         
}

Output of Program:

You will listen a beep sound. 



You may also like to learn following programs:

  • Use of XOR operations on two numbers using C program.
  • C program to ring a bell.
  • Use of Time (Sleep) function in C program.
  • C program to separate words (tokens) from a given string.
  • C program to count spaces in a given string.
  • C program to print ASCII values and its corresponding character.
  • C program to print memory addresses of an array elements.
  • Changing(swapping) value of two variables without use of third variable.
  • Use of MODULUS (%) operator to find odd or even number.
  • C program to validate user input.
  • C program to print memory occupied by int, float and char variables.
  • Storing New Line character (\n) as a user input data.
  • C program to use Arrow keys.
  • C program to delete a given file.
  • Printing Box using ASCII values. 




Posted by KKP at 4:00 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Special

No comments:

Post a Comment

Newer Post Older Post Home
View mobile version
Subscribe to: Post Comments (Atom)

Search This Blog

Total Pageviews

Followers

Labels

  • Algorithm (5)
  • Arrays (20)
  • Basics (51)
  • Branching (16)
  • C Plus Plus (31)
  • Data Structure (2)
  • Dymanic Memory Management (3)
  • File Handling (20)
  • Flowchart (26)
  • Functions (15)
  • Loops (59)
  • Networking (15)
  • Operators (13)
  • Patterns (18)
  • Pointers (8)
  • Projects (6)
  • Security (22)
  • Series (7)
  • Special (61)
  • String (23)
  • Structure (8)

Blog Archive

  • ►  2025 (2)
    • ►  April (1)
    • ►  January (1)
  • ►  2024 (3)
    • ►  February (2)
    • ►  January (1)
  • ►  2023 (11)
    • ►  December (2)
    • ►  October (1)
    • ►  September (1)
    • ►  June (1)
    • ►  April (2)
    • ►  March (1)
    • ►  February (3)
  • ►  2022 (5)
    • ►  December (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2021 (6)
    • ►  December (1)
    • ►  October (1)
    • ►  August (1)
    • ►  May (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2020 (16)
    • ►  December (2)
    • ►  September (1)
    • ►  August (2)
    • ►  June (1)
    • ►  April (2)
    • ►  March (2)
    • ►  February (4)
    • ►  January (2)
  • ►  2019 (10)
    • ►  December (1)
    • ►  November (1)
    • ►  April (1)
    • ►  March (4)
    • ►  February (2)
    • ►  January (1)
  • ►  2018 (51)
    • ►  December (4)
    • ►  November (7)
    • ►  October (14)
    • ►  September (3)
    • ►  August (6)
    • ►  July (2)
    • ►  June (1)
    • ►  April (4)
    • ►  March (7)
    • ►  February (2)
    • ►  January (1)
  • ►  2017 (121)
    • ►  December (7)
    • ►  November (4)
    • ►  October (6)
    • ►  September (2)
    • ►  August (7)
    • ►  July (17)
    • ►  June (6)
    • ►  May (20)
    • ►  April (15)
    • ►  March (13)
    • ►  February (18)
    • ►  January (6)
  • ▼  2016 (201)
    • ►  December (15)
    • ►  November (19)
    • ►  October (12)
    • ►  September (28)
    • ▼  August (18)
      • C program to Print Mark-sheet.
      • C Program to check given string is Palindrome or not.
      • C program to display Good morning message based on...
      • C program to find the area of a square.
      • C program to find the area of a circle.
      • Printing formatted output using ASCII value.
      • Printing Box using ASCII values.
      • Use of arithmetic operators in C program.
      • Use of decrement (--) operator in C program.
      • Use of increment (++) operator in C program.
      • C program to count no. of digits in a given number.
      • Use of #define in C program.
      • C program to perform mathematical operations on ch...
      • Use of various Data Types in C program.
      • C program to ring a bell using ASCII value 7.
      • C program to ring a bell.
      • C program to read and print your name and address.
      • C program to print your name and address(Static pr...
    • ►  July (11)
    • ►  June (34)
    • ►  April (3)
    • ►  March (13)
    • ►  February (43)
    • ►  January (5)
  • ►  2015 (5)
    • ►  October (4)
    • ►  September (1)

Translate

Wikipedia

Search results

Popular Posts

  • Draw Flowchart to check Odd or Even Number.
    Odd Even Flowchart Following flowchart will read a number from user. This number is checked using % operator to find whether it is odd o...
  • Flowchart to Add two numbers.
    Flowchart to Add two numbers  This flowchart outlines the essential steps required to add two numbers. Fig. Flowchart to Add two numb...
  • MCQs based on Flowchart with Answer
    The _______ provides pictorial representation of given problem. A. Algorithm B. Flowchart C. Pseu...
  • Flowchart of Area of Circle
    This flowchart is prepared using one of the workflow diagram software RAPTOR. Read C program to print Area of Circle More Sam...
  • Flowchart of Simple Interest
    Simple Interest Calculation of Savings Bank Accounts / Loan Accounts Following flowchart describes the process of simple interest calcu...

Contact us for any Doubt

Name

Email *

Message *

Visitors Information

Flag Counter
Data and information provided on blog is for information only.. Powered by Blogger.