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
What is property type c?
What is pragma c?
Why c is procedure oriented?
If I have a char * variable pointing to the name of a function ..
How can I trap or ignore keyboard interrupts like control-c?
Describe dynamic data structure in c programming language?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Can two or more operators such as and be combined in a single line of program code?
What are run-time errors?
What is null in c?
What is wrong in this statement? scanf(ā%dā,whatnumber);
What are type modifiers in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is the difference between single charater constant and string constant?
What is derived datatype in c?