Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C Program for Palindrome
void main()
{
char ch[30];
char ch1[30];
int i,j,l;
clrscr();
printf("ENTER THE STRING: ");
gets(ch);
l=strlen(ch);
j=0;
for(i=l-1;i>=0;i--,j++)
ch1[j]=ch[i];
ch1[j]='\0';
if(strcmp(ch,ch1)==0)
printf("IT IS A PALINDROME");
else
printf("IT IS NOT A PALINDROME");
getch();
}
OUTPUT :
ENTER THE STRING: MALAYALAM
IT IS A PALINDROME
write a program that counts the number of occurances of the string in the n-th padovan string p(n)
Study the following class diagram, additional information and answer the questions that follow: MovieTicket movieName: string TicketPrice: doub
construct a console programme for a bank ATM machine.
Use of random function: int main(void) { int i,j; for(j=0;j { // randomize(); for(i=0;i printf("%d\n", ran
In which condition a template a better solution than a base class? A: While you are designing a generic class to contain or manage objects of other types, while the format & beh
Rules for overloading an operator This summarizes the most significant points you need to know in order to do operator function overloading. The only operators you may o
Q: Name the operators which cannot be overloaded? A:sizeof, ., .*, .->, ::, ?:
Question: (a) Explain the function fseek(). Using an appropriate example, write the full syntax for this function. (b) Write a C or C++ program that will perform the follo
Create a program to print a battleship grid to the console and mark squares as destroyed
At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd