write a reverse string to print a stars.(with out using logic)
*****
****
***
**
*

Answers were Sorted based on User's Feedback



write a reverse string to print a stars.(with out using logic) ***** **** *** ** *..

Answer / sandeep

#include<stdio.h>
#include<conio.h>
int main()
{

puts("
*****");
puts("
****");
puts("
***");
puts("
**");
puts("
*");
return 0;
}

Is This Answer Correct ?    0 Yes 2 No

write a reverse string to print a stars.(with out using logic) ***** **** *** ** *..

Answer / srikanth tupakula

#include<stdio.h>
int main()
{
int
printf("
*****");
printf("
****");
printf("
***");
printf("
**");
printf("
*");
return 0;
}

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

What is scope rule in c?

0 Answers  


What is Memory leakage ?

2 Answers   HCL,


What are the advantage of c language?

0 Answers  


main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?

7 Answers   Ramco,


Can you please explain the difference between malloc() and calloc() function?

0 Answers  






How we can insert comments in a c program?

0 Answers  


When is a null pointer used?

0 Answers  


What is the use of function overloading in C?

0 Answers   Ittiam Systems,


How variables are declared in c?

0 Answers  


What is the size of enum in bytes?

0 Answers  


Explain how does flowchart help in writing a program?

0 Answers  


int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }

2 Answers  


Categories