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!
Program is to check whether the string entered is a palindrome or not:
Program is to check whether the string entered is a palindrome or not invoke function from main
int palindrome(char *st);
void main()
{
clrscr();
int x;
char *st;
int ans;
cout<<" enter the string ";
cin>>st;
ans=palindrome(st);
if (ans==0)
cout<<" the string is palindrome ";
else
cout<<" the string is not a palindrome ";
}
int palindrome(char *st)
int i;
int l=strlen(st);
for(i=0;i { if (st[i]!=st[l-1-i]) return 1; } return 0; }
if (st[i]!=st[l-1-i])
return 1;
return 0;
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
Write a C++ program that calculates the area of a circle, rectangle and square using overloaded versions of a function area ().Your program should include both declarations and def
Draw a picture using line: void main(void) { int driver = DETECT,mode; int x[10],y[10]; int x_center = 360, y_center = 180, rad = 100; int
coding
Inline functions, C++ provides inline functions to help reduce function_call overhead especially for small functions. The qualifier inline before function's return type in the f
explain about symbolic constants with examples
i want to check the command line argument is whether an integer or a string
How do you access the values within an array? - Arrays comprise a number of elements, which depends on the size you assigned it during variable declaration. - Every element
Develop a C++ program that uses a while to determine the gross pay (in Dollars) for each of several employees. The company pays “straight-time” for the first 40 hours worked by ea
Write a C program to input 16 numbers and print them out in a table format of 4 wide by 4 deep. E.g. 4 5 5 7 8 9 10 11 12 13 14 15 16 17
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd