Write a program that his output * *** *****
Answer / srujitha
int main()
{
int n = 5;
for( int i = 0; i <= n; i = i + 2)
{
for( int j = 0; j<=i;j++)
{
printf("*");
}
printf(" ");
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Explain the difference between struct and union.
Explain #pragma in C.
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
How can I read a directory in a C program?
2 Answers Bright Outdoor, Wipro,
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
What is the exact difference between '\0' and ""
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
Tell me can the size of an array be declared at runtime?
post new interiew question and aptitude test papers
when user give a number it multiply with 9 without useing '+' and '*' oprator
the operator for exponencation is a.** b.^ c.% d.not available
Can you please compare array with pointer?