Learn C on the Mac

Author Dave Mark starts out this handy book “Learn C on the Mac” with the basics of C programming and takes through a complete course in programming C using Apple’s free Xcode tools. This book is a perfect guide for beginners learning to program in C on Mac OS. It...

Arrays as Data Structure in C/C++

As discussed in the previous post, there are two types of data structures available to C and C++ programmers. One is already built into the programming language such as arrays and structures. Other type of data structure is a bit complex in a sense that it can be...

Data Structure Articles

The basic aim of mycplus.com website was to develop a website for students of C/C++ and data structures. There are lots of tutorials and source code covering different aspects of C/C++ programming language. Today I have decided to write few articles about data...

50 C/C++ source code websites

It’s well known that C/C++ languages are the most dominant programming languages around. As I mentioned in the previous post "Top 10 best applications written in C/C++" that most of the big software, operating systems, games and other scientific tools...

Top 10 best applications written in C/C++

This is a list of famous and widely used applications and software packages written in C or C++ programming languages. Applications written in both C and C++ programming languages are included due to the fact that most of the applications are partially or completely written in either C language or C++.

These applications are mainly, but not limited to, operating systems, new programming languages, Graphical User Interfaces (GUI) and Integrated Development (IDE) are written in C/C++. The operating systems include Windows 95, 98, 2000, XP, Apple OS X, Symbian OS and BeOS.

Reading Files

This is a small C language program that can read a text file. The program is given file name as command parameter and it reads the file line by line. The program will prints out number of characters and words in each line. The program will also prints out the number...

C Program of Library Management System

This is a C program of Library Management System by which a librarian can operate a simple library. User can add multiple students, update their records and issue multiple books. This C Program shows different information about library including numbers of books and...

C Programming: A Modern Approach, 2nd Edition

The first edition of C Programming: A Modern Approach was popular with students and faculty alike because of its clarity and comprehensiveness as well as its trademark Q&A sections. Professor King’s spiral approach made it accessible to a broad range of...

C Program to calculate Factorial of a Number

This C program calculates the the factorial of an integer number entered by the user. The function uses for loop to calculate the factorial and returns the number. Program terminates if a non integer number is entered. This C language program uses for loop in just a...

C Programming Language (2nd Edition)

Just about every C programmer I respect learned C from this book. Unlike many of the 1,000 page doorstops stuffed with CD-ROMs that have become popular, this volume is concise and powerful (if somewhat dangerous) — like C itself. And it was written by Kernighan...

Unions and Structures in C Programming

A union in C programming is a user defined data type which may hold members of different sizes and type. Union uses a single memory location to hold more than one variables. However, only one of its members can be accessed at a time and all other members will contain garbage values. A structure is a convenient tool for handling a group of logically related data items. Structure help to organize complex data is a more meaningful way. It is powerful concept that we may after need to use in our program Design.

Basic Data types and Operators in C

C language provides a standard and minimal set of basic data types. Sometimes these are called primitive data types. More complex data structures can be built up from these basic data types. Data types specify how we enter data into our C programs and what type of data we use for different operations. C has some predefined set of data types to handle various kinds of data that we can use in our program.

C/C++ Programmer’s Reference

Essential programming tips at your fingertips! This handy programmer’s reference provides quick access to syntax, functions, classes, methods, as well as the Standard Template Library (STL). The book covers ANSI/ISO Standard C and C++, including the new C99...

Snake Game – C Imlementation

This C program simulates the game “snake” which is usually available in old mobile phones. A string of characters moves on the screen according to arrow keys pressed by user. If it touches itself or screen boundary, the program terminates. When the snake moves, in arbitrary screen positions some digit (1-9) appears. The objective of the game is to make the snake eat the said digit, so that it is added to the score. When a digit is eaten, the size of the snake increases by the number of characters equal to the value of the digit.

TIC TAC TOE Game

This is an advance version of Tic Tac Toe computer game written in c programming language. The game runs in graphical mode of DOS prompt and users can play the game in graphical mode. The game has many options to choose from, like playing with computer, friend. While...

Paint in Dos

Anyone and Everyone is allowed to use this code freely without any conditions. I wrote most of this code as a part of a college assignment in my Computer Graphics Lab when I was in the 6th semester of Engineering. I am a student of R.V College of Engineering,...

C Program to print Fibonacci numbers

This C program prints out the first Fibonacci series of N numbers. In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci. The first number of the sequence is 0, the second number is 1, and each subsequent number is equal to the sum of the previous two numbers of the sequence itself, thus creating the sequence 0, 1, 1, 2, 3, 5, 8, etc. The standard form of writing Fibonacci series is:

GNU coding styles and standards

Reference standards Don’t in any circumstances refer to Unix source code for or during your work on GNU! (Or to any other proprietary programs.) If you have a vague recollection of the internals of a Unix program, this does not absolutely mean you can’t...

C Program to create Turbo C compiler UI

This is a small C program that demonstrates Turbo C Compiler User Interface. This is done by using graphics library in C. This C program uses line()  function to draw the lines and setcolor()  function to change the colors of different items. The function ...