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
Describe newline escape sequence with a sample program?
What is the difference between the = symbol and == symbol?
How can I do serial ("comm") port I/O?
What do you mean by dynamic memory allocation in c? What functions are used?
what do u mean by Direct access files? then can u explain about Direct Access Files?
Can a variable be both const and volatile?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is a constant and types of constants in c?
How is actual parameter different from the formal parameter?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
Explain how can a program be made to print the line number where an error occurs?
What is sizeof array in c?
Why is c so powerful?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.