Give the Output :
*
* *
* * *
* * * *
Answers were Sorted based on User's Feedback
Answer / sakthipriya
#include<stdio.h>
#include<conio.h>
void main()
{
int n=4, c, k, space, count = 1;
space = n;
for ( c = 1 ; c <= n ; c++)
{
for( k = 1 ; k < space ; k++)
printf(" ");
for ( k = 1 ; k <= c ; k++)
{
printf("*");
if ( c > 1 && count < c)
{
printf(" ");
count++;
}
}
printf("\n");
space--;
count = 1;
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / prasanna
int i,j;
for(i=o;i<4;i++)
{
for(j=0;j<=i;j++)
{
printf("*");
}
}
| Is This Answer Correct ? | 1 Yes | 6 No |
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is variable initialization and why is it important?
What are multibyte characters?
Why do we use main function?
What are run-time errors?
What is the difference between union and anonymous union?
How are 16- and 32-bit numbers stored?
What is sizeof return in c?
Write a program for Overriding.
List some of the static data structures in C?
Why can’t constant values be used to define an array’s initial size?
How are pointers declared in c?