Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?

Answers were Sorted based on User's Feedback



Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?..

Answer / subhammondal551

#include<stdio.h>
#include<conio.h>
void main()
{
int i,sum=65;
clrscr();
printf("*");
for(i=1;i<=26;i++)
{
sum=sum+1;
printf("%c",sum);
}
getch();
}

Is This Answer Correct ?    5 Yes 0 No

Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?..

Answer / muthyala nagaraju

#include<stdio.h>
#include<conio.h>
main()
{
int i;
char ch='A';
for(i=65;i<=97;i++)
{
printf("%c",ch++);
}
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

write a program to print data of 5 five students with structures?

0 Answers  


struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?

1 Answers   Wipro,


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

0 Answers  


What does %p mean?

0 Answers  


How we can set and clear bit in a byte using macro function?

2 Answers   L&T, Samsung,






Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack

3 Answers  


what is the full form of c language

9 Answers   Satyam, TCS, VNC,


simple program of graphics and their output display

0 Answers   Elysium,


What is Bitwise Operator and how it works?

1 Answers  


What are identifiers in c?

0 Answers  


write a c program to find largest number in matrix(in each row,each column, diagonally, and in the whole matrix)? Its urgent.

2 Answers  


how do you execute a c program in unix.

0 Answers  


Categories