//Program to find Table of any number
LOOSE TECH - C Programming Blog Online
Sunday, 8 September 2013
Tuesday, 3 September 2013
The Sleeping-Barber Problem
The Sleeping-Barber Problem:
A barbershop consists of a waiting room with n chairs, and the barber room containing the barber chair. If there are no customers to be served, the barber goes to sleep. If a customer enters the barbershop and all chairs are occupied, then the customer leaves the shop. If the barber is busy, but chairs are available, then the customer sits in one of the free chairs. If the barber is asleep, the customer wakes up the barber.
Write an interactive program in C / C++ to synchronize/coordinate the barber and the customers.
Click on Read More to view program in C to synchronize the barber and the customers.
A barbershop consists of a waiting room with n chairs, and the barber room containing the barber chair. If there are no customers to be served, the barber goes to sleep. If a customer enters the barbershop and all chairs are occupied, then the customer leaves the shop. If the barber is busy, but chairs are available, then the customer sits in one of the free chairs. If the barber is asleep, the customer wakes up the barber.
Write an interactive program in C / C++ to synchronize/coordinate the barber and the customers.
Click on Read More to view program in C to synchronize the barber and the customers.
Tuesday, 20 August 2013
Program In C Language To Find Number Is Prime or not.
//Program to find number is prime or not
Thursday, 15 August 2013
How To Perform Addition In C Language
//Program to perform addition in 'C' with explanation
Wednesday, 7 August 2013
How To Make Simple Hello Program With Explanation
//Program to print “Hello” with the meaning of each
word
Thursday, 1 August 2013
Things To Know
- C is developed by Dennis Ritchie.
- C is a Middle Level Language.
- C program is often known as Source Code.
- In C, statements are executed in the sequence they have written.
- The symbol ';' used to terminate a statement.
- All statements are entered in small case letters.
- No blank spaces are allowed within a variable, constant or keyword.
PREPROCESSOR:-
- Before a C program is compiled it is passed through another program called preprocessor.
- Preprocessor works on the source code and creates 'Expanded Source Code'.
- Preprocessor offers several features called preprocessor directives or preprocessor command such as #include is a preprocessor directive.
- Each preprocessor directive begins with a # symbol.
- Preprocessor directives are:-
- Macro expansion
- File inclusion
- Conditional Compilation
- Miscellaneous directives
Saturday, 20 July 2013
C History
C History
- C is a general-purpose programming language initially developed by Dennis Ritchie that used the Unix Operating system between 1969 and 1973 at Bell Labs.
- C is the result of a development process that started with an older language called BCPL.
- BCPL was developed by Martin Richards, and it influenced a language called B, which was invented by Ken Thompson.
- In the summer of 1983 a committee was established to create an ANSI (American National Standards Institute) standard that would define the C language.
- The standardization process took six years (much longer than anyone reasonably expected).
- The ANSI C standard was finally adopted in December 1989, with the first copies becoming available in early 1990.
- The standard was also adopted by ISO (International Standards Organization), and the resulting standard was typically referred to as ANSI/ISO Standard C.
- Many later languages have borrowed directly or indirectly from C, including C#, D, Go, Java, JavaScript, Limbo, LPC, Perl, PHP, Python, and Unix's C shell.
Subscribe to:
Posts (Atom)