How to print all the 26 alphabets in this order in C.

AbCdEfGh.....

it should print dynamically from a to z and do not print
this using pgm like this print("Ab......");

Use loops or anything to print all alphabets

Answer Posted / jebarose

This can be done by using ASCII value...
ASCII value of A is 65
ASCII value of b is 98
Difference of Ab,Cd,Ef.(etc) is 33
A to C is 2.

This is the logic,while printing use %c,so tht it gets print
as Alphabets.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between the local variable and global variable in c?

602


Write a program to know whether the input number is an armstrong number.

673


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

566


about c language

1606


What are the two types of structure?

578






praagnovation

1780


What are the features of the c language?

648


what is the height of tree if leaf node is at level 3. please explain

1602


What is zero based addressing?

717


Why ca not I do something like this?

587


What is the purpose of void in c?

619


What is the difference between #include and #include 'file' ?

605


Explain the difference between malloc() and calloc() in c?

578


What is the use of header files?

606


What is getch() function?

649