Home Books Ebooks C-and-C++-books C and C++ books-page4


Share on Google+Share on Google+

C and C++ books-page4

An array in C is a region of memory in which the elements (chars, ints, etc.) can be accessed using an index (in a 1-dimensional array, e.g. name[0]) or several indices (in a multi-dimensional array, e.g. names[3][0][2]).

C and C++ books-page4


  1. The Static and Dynamic allocation of multi-Dimensional arrays
    An array in C is a region of memory in which the elements (chars, ints, etc.) can be accessed using an index (in a 1-dimensional array, e.g. name[0]) or several indices (in a multi-dimensional array, e.g. names[3][0][2]). The first element in a 1-dimensional array x[] is x[0], in a 2-dimensional array x[][] is x[0][0], and so on. The index of the last element in a 1-dimensional array is one less than the size of the array (e.g. name[31] if the array is declared using char name[32]). In a multidimensional array the indices of the last element are one less than the sizes of each dimension.
  2. The UNIX System call in c programming
    In order to use Solaris and most other Unix Systems you will need to be familiar with the Common Desktop Environment (CDE). Before embarking on learning C with briefly introduce the main features of the CDE. Most major Unix vendors now provide the CDE as standard. Consequently, most users of the X Window system will now be exposed to the CDE. Indeed, continuing trends in the development of Motif and CDE will probably lead to a convergence of these technologies in the near future. This section highlights the key features of the CDE from a Users perspective. Upon login, the user is presented with the CDE Desktop . The desktop includes a front panel, multiple virtual workspaces, and window management. CDE supports the running of applications from a file manager, from an application manager and from the front panel.
  3. The C tutorial-Brackets and Braces
    Some of the characters C uses aren't standard on mainframe terminals. If you're using a 3270-terminal emulator, make sure your settings will handle all the characters below. You need to be able to view them and also type them in and have the correct hex values generated. You might need to adjust the font, terminal type, keyboard mapping or code page. Using trigraphs is also a alternative, in which case you'll need to check the compiler options to make sure they're enabled. Some of these special characters have two hex versions. For example, square brackets may also be represented by 0xBA and 0xBB, and the vertical bar  may be 0x6A. The compiler will generate an 'invalid character' error message if it can't interpret a symbol.
  4. Introduction to C Programming 
    C has been used successfully for every type of programming problem imaginable from operating systems to spreadsheets to expert systems - and efficient compilers are available for machines ranging in power from the Apple Macintosh to the Cray supercomputers. The largest measure of C's success seems to be based on purely practical considerations: * the portability of the compiler  * the standard library concept, * a powerful and varied repertoire of operators,
    * an elegant syntax, * ready access to the hardware when needed, * and the ease with which applications can be optimised by hand-coding isolated procedures .
  5. The Ground Cero Guide to C
    C is generally acknowledged as one of the best programming languages available. It has a rather long story, and has been used for building a  lot of the "BIG" programs in existence. Even though C is one of the most used programming-languages it is in it's rawest form not even able to print a character to the screen! This may seem a bit strange, considering that most programs display something on the screen. Therefore C uses external commands to display characters to the screens. These commands are located in header files.


Liked it!  Share this Tutorial

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: February 14, 2008

Ask Questions?    Discuss: C and C++ books-page4  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image