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

Answer Posted / sourisengupta

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

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

701


Is a house a mass structure?

630


Is malloc memset faster than calloc?

599


What is double pointer?

546


What is a scope resolution operator in c?

735






How can I get the current date or time of day in a c program?

639


What is the difference between functions abs() and fabs()?

631


What do you understand by normalization of pointers?

608


Why c is procedure oriented?

556


How can I manipulate strings of multibyte characters?

625


What does sizeof function do?

602


how could explain about job profile

1443


What is time null in c?

570


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1771


What are the characteristics of arrays in c?

599