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

diff between exptected result and requirement?

1592


What are the types of variables in c?

578


What are the different types of data structures in c?

597


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1115


What functions are used for dynamic memory allocation in c language?

597






How pointer is different from array?

573


What is meant by type specifiers?

658


How many levels of indirection in pointers can you have in a single declaration?

589


What is calloc() function?

621


What is the purpose of sprintf?

615


What are the primitive data types in c?

570


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

613


In C, What is the #line used for?

1047


What is keyword in c?

597


What is variables in c?

602