C and C++ Programming Resources | C & C++ Code Example Index | C++ Code Example Index

 

 

 

 

The C Array and Pointer Data Types Sample Codes Index Page

 

The following links demonstrate the C program examples on two C aggregate types which are array and pointers. Pointers is another C important construct that optimized the used of computer resources such as memory and provide a very efficient way to manipulate the computer memory though it is quite difficult to understand and very easy to be misused.

 

C Arrays (The C array type code samples)

  1. C++ 2D array and nested for loop, sorting data from user's input

  2. An array and the command line arguments in C programming

  3. Printing 2D arrays' elements and their respective indices in C programming

  4. Printing the 2D array elements and their respective indices used together with nested for loops

  5. How to sort array elements descendingly in C program

  6. Sorting array elements ascendingly in C program example

  7. Printing a simple histogram using 2D array C program example

  8. The sum of the array elements C program example

  9. To compute the square root of the sum of the squares of an array elements in C

  10. The C array, character and string program example

  11. The C array, character and string program example (secure version)

 

    C Pointers (The C pointers code samples)

     

    1. The C pointers that point to another pointer

    2. Invoking function call using function pointer C program example

    3. Printing strings and the passed arguments using function pointer

    4. Passing an array of pointers to a function C program example

    5. Displaying arrays' elements and their respective indices in various format

    6. The pointers and strings C program example, printing the string using pointer variable

    7. Displaying arrays' elements and their respective indices in C program

    8. Displaying memory address of the array elements in C

    9. The C array, pointer and string program example

    10. Assigning NULL to a pointer, NULL pointer that point to no object in C programming

    11. Displaying memory address and the stored value for pointer variable in C programming

    12. Differentiate the memory address and the actual stored data location in C pointer programming

    13. How to use C pointer properly and differentiate between the memory address and the actual data location of the variables

 

C and C++ Programming Resources | C & C++ Code Example Index | C++ Code Example Index