Answer Posted / sandeep
#include<stdio.h>
#include<conio.h>
void main()
{
char n[6];
int i,l;
clrscr();
printf("enter string");
scanf("%s",n);
l=strlen(n);
if((l%2)==0)
exit(0);//length of string is even and cant be a palindrome
for(i=1;i<l/2;i++)
{
if(n[i]==n([l/2+i)])
i++;
else
printf("string is not palindrome");
}
getch();
}
Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
What is full form of PEPSI
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
write a simple calculator c program to perform addition, subtraction, mul and div.
how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.
how to test pierrot divisor
why nlogn is the lower limit of any sort algorithm?
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
Sir... please give some important coding questions asked by product companies..
Design an implement of the inputs functions for event mode
Write a routine to implement the polymarker function
What is data _null_? ,Explain with code when u need to use it in data step programming ?
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??