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
diff between exptected result and requirement?
What are the types of variables in c?
What are the different types of data structures in c?
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
What functions are used for dynamic memory allocation in c language?
How pointer is different from array?
What is meant by type specifiers?
How many levels of indirection in pointers can you have in a single declaration?
What is calloc() function?
What is the purpose of sprintf?
What are the primitive data types in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
In C, What is the #line used for?
What is keyword in c?
What is variables in c?