Write a program in c to print
*
* *
* *
*******
Answer / kapil
#include<stdio.h>
void main()
{
int i=0,j=1;
while(i<3)
{
while(j<=7)
{
if(j-i==4||j+i==4)
printf("*");
else
printf(" ");
j++;
}
printf("\n");
i++;
j=1;
}
while(j<=7)
{
printf("*");
j++;
}
}
Is This Answer Correct ? | 5 Yes | 2 No |
Describe explain how arrays can be passed to a user defined function
What’s the special use of UNIONS?
What's the difference between DELETE TABLE and TRUNCATE TABLE commands?
How to write a multi-statement macro?
c program to subtract between two numbers without using '-' sign and subtract function.
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
An entire structure variable can be assigned to another structure variable if __________
3 Answers Sasken, TCS, Tech Mahindra, Wipro,
main() { int a = 65; printf(“%d %o %x”,a,a,a); } Output 65 101 41 Please explain me.How it is coming like that?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Binary tree traversing
what is the difference between const volatile int i & volatile const int j;
write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC