write a reverse string to print a stars.(with out using logic)
*****
****
***
**
*
Answers were Sorted based on User's Feedback
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 |
Answer / srikanth tupakula
#include<stdio.h>
int main()
{
int
printf("
*****");
printf("
****");
printf("
***");
printf("
**");
printf("
*");
return 0;
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Differentiate between functions getch() and getche().
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is array of pointers to string?
which will be first in c compiling ,linking or compiling ,debugging.
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database
2 Answers TCS, Unisys, Webyog,
1)what is the error in the following stmt where str is a char array and the stmt is supposed to traverse through the whole character string str? for(i=0;str[i];i++) a)There is no error. b)There shud be no ; after the stmt. c)The cond shud be str[i]!='\0' d)The cond shud be str[i]!=NULL e)i shud be initialized to 1
How can I call a function with an argument list built up at run time?
Write a program to check palindrome number in c programming?
print a "hello" word without using printf n puts in c language
What is the use of gets and puts?
Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?
Write a program that receives as input a number omaadel-n-print, four digits.