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
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is difference between scanf and gets?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
I have seen function declarations that look like this
What is static memory allocation? Explain
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?
What is the purpose of 'register' keyword in c language?
What is the meaning of ?
What do you mean by keywords in c?
What is nested structure?
What are external variables in c?
Do pointers store the address of value or the actual value of a variable?
In C language what is a 'dangling pointer'?
Explain what is wrong with this program statement? Void = 10;
ATM machine and railway reservation class/object diagram