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
What is the use of void pointer and null pointer in c language?
Is printf a keyword?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is the time and space complexities of merge sort and when is it preferred over quick sort?
Distinguish between actual and formal arguments.
What is the difference between malloc() and calloc()?
What is identifiers in c with examples?
What is substring in c?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
How can a string be converted to a number?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What is meant by realloc()?
Whats s or c mean?
What does p mean in physics?