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

Write a program to find factorial of a number using recursive function.

0 Answers   Global Logic, TCS,


What are enums in c?

0 Answers  


If input is 123 then how to print 100 and 20 and 3 seperately?

4 Answers  


What is a MAC Address?

0 Answers  


what do you mean by enumeration constant?

0 Answers  






What is the use of sizeof () in c?

0 Answers  


1 1 12 21 123 321 12344231 how i creat it with for loop??

1 Answers  


Q. where is the below variables stored ? - volatile, static, register

3 Answers   Bosch,


How can I call a function, given its name as a string?

4 Answers   ABC Telecom,


code for inverse a matrix

0 Answers  


Meaning of () in c

1 Answers  


What is the difference between exit() and _exit() function in c?

0 Answers  


Categories