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
Explain logical errors? Compare with syntax errors.
What are the features of c language?
What is the difference between functions getch() and getche()?
What is the meaning of typedef struct in c?
What are the two types of structure?
Can we declare a function inside a function in c?
What are the advantages of using macro in c language?
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
What is storage class?
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
What does void main return?
How can I direct output to the printer?
What is the difference between far and near ?
Explain what does it mean when a pointer is used in an if statement?
What is the difference between malloc calloc and realloc in c?