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 static function in c?

0 Answers  


Can math operations be performed on a void pointer?

0 Answers  


How can I invoke another program from within a C program?

8 Answers  


nic scientist exam

1 Answers   NIC,


What is volatile variable in c?

0 Answers  






Explain how can you tell whether two strings are the same?

0 Answers  


What are the different types of C instructions?

0 Answers   InterGraph,


what is computer engg

1 Answers  


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

0 Answers  


How to calculate sum

2 Answers  


Explain Function Pointer?

0 Answers   Wipro,


How can you tell whether a program was compiled using c versus c++?

0 Answers  


Categories