write a reverse string to print a stars.(with out using logic)
*****
****
***
**
*
Answer Posted / 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 View All Answers
What is a macro, and explain how do you use it?
Can you please compare array with pointer?
Whats s or c mean?
What is the use of typedef in c?
Can a pointer be volatile in c?
Why doesn't C support function overloading?
What are register variables? What are the advantage of using register variables?
What are volatile variables in c?
What are dangling pointers? How are dangling pointers different from memory leaks?
What is wrong with this program statement? void = 10;
What is static and volatile in c?
Why is c so popular?
What are the types of unary operators?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What functions are used for dynamic memory allocation in c language?