Friday, 12 April 2013

To run a loop from A to Z


   
    char * letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

    for (char * ptr = letters; *ptr != 0; ++ptr)
    {
        char ch = *ptr;
    }