C Program to Print the Alphabet

This program will print the alphabet from A to Z in capital letters. In this program, I have printed the alphabets based on the ASCII code (Abbreviated from American Standard Code).

Output is:A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Description: In the above program we used the “%c” format specifier to print the alphabet. In the ASCII code, 65 is the value of capital letter A. We have added 26 in 65 (65+26) and execute the for loop to print the alphabets from A to Z.

See the below ASCII code table.

ASCII codes

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs