Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write a program that his output * *** *****



Write a program that his output * *** *****..

Answer / srujitha

int main()
{
int n = 5;

for( int i = 0; i <= n; i = i + 2)
{
for( int j = 0; j<=i;j++)
{
printf("*");
}
printf(" ");
}

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Interview Questions

Explain the difference between struct and union.

2 Answers  


Explain #pragma in C.

1 Answers  


Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

2 Answers   Bosch,


How can I read a directory in a C program?

2 Answers   Bright Outdoor, Wipro,


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

0 Answers   Wipro,


What is the exact difference between '\0' and ""

3 Answers  


f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?

9 Answers   Hughes, Tech Mahindra,


Tell me can the size of an array be declared at runtime?

0 Answers  


post new interiew question and aptitude test papers

1 Answers  


when user give a number it multiply with 9 without useing '+' and '*' oprator

4 Answers  


the operator for exponencation is a.** b.^ c.% d.not available

5 Answers   TCS,


Can you please compare array with pointer?

0 Answers  


Categories