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...

what is the code for getting the output as
*
**
***

Answer Posted / pooja sonawane

void main()
{
int i,j;
for(i=0;i<3;i++)
printf("\n");
for(j=0;j<i;j++)
printf("*");
}

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1186


What is difference between scanf and gets?

1186


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

1034


I have seen function declarations that look like this

1001


What is static memory allocation? Explain

1055


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

2273


What is the purpose of 'register' keyword in c language?

988


What is the meaning of ?

1003


What do you mean by keywords in c?

1093


What is nested structure?

1009


What are external variables in c?

1051


Do pointers store the address of value or the actual value of a variable?

1033


In C language what is a 'dangling pointer'?

1075


Explain what is wrong with this program statement? Void = 10;

1204


ATM machine and railway reservation class/object diagram

5201