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 a function method?give example?
What is the explanation for the dangling pointer in c?
When should a far pointer be used?
What are the two types of functions in c?
What is clrscr ()?
Can we replace the struct function in tree syntax with a union?
Explain what is a 'locale'?
Is c high or low level?
How can you find the day of the week given the date?
How will you find a duplicate number in a array without negating the nos ?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
find out largest elemant of diagonalmatrix
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Is multithreading possible in c?
What are enumerated types?