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 |
what is d pitfalls of registers variables
How can you increase the allowable number of simultaneously open files?
What is hashing in c language?
a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?
main() { int a; a=++100; printf("%d",a); getch(); }
Explain how can you restore a redirected standard stream?
What are types of structure?
wat are the two methods for swapping two numbers without using temp variable??
Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }
Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning
character array A[12] can hold
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.