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

Explain logical errors? Compare with syntax errors.

631


What are the features of c language?

621


What is the difference between functions getch() and getche()?

624


What is the meaning of typedef struct in c?

594


What are the two types of structure?

579






Can we declare a function inside a function in c?

590


What are the advantages of using macro in c language?

595


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1473


What is storage class?

655


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

766


What does void main return?

607


How can I direct output to the printer?

814


What is the difference between far and near ?

687


Explain what does it mean when a pointer is used in an if statement?

618


What is the difference between malloc calloc and realloc in c?

649