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 search for a given character in a string:
Program is to search for a given character in a string and print point of match
char *stsearch(char *string, char search);
void main()
{
clrscr();
char string[20],search,*temp;
int i=0;
cout<<" enter a string ";
gets(string);
cout<<" enter the letter to be searched in a string ";
cin>>search;
temp=stsearch(string,search);
cout<<"String after char search : "< } char *stsearch(char *string, char search) { int i=0; while (string[i]!='\0') { if(search==string[i]) { cout<<" The Character is found : "<<"\n"; return &string[i]; } i++; } cout<<" The char is not found "; return NULL; }
}
char *stsearch(char *string, char search)
while (string[i]!='\0')
if(search==string[i])
cout<<" The Character is found : "<<"\n";
return &string[i];
i++;
cout<<" The char is not found ";
return NULL;
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
Public, Private and Protected members: Class members can either be declared in public','protected' or in the 'private' sections of the class. But as one of the features of OOP i
Project Description: Need to develop an expert advisor base on sthocastic oscilator with my own setting.. Very basic touch line OB/OS only but on my setting n condition Skill
What is the difference among const char *myPointer and char *const myPointer? A: Const char *myPointer is a non constant pointer to constant data; whereas char *const myPointer
find area under the curve y=f(x) between x=a &y=b integrate y=f(x)
Need assignment help What's the order that local objects are destructed?
Selection Sort using this a nested for loop to iterate through and compare the array elements. If the value of an element with lower index is greater than the value of an element w
solution of problem based on poiter
List any six commonly found programming errors in a C program Six commonly found errors in a C program are: 1. Missing or misplaced ; or }, missing return type for a proc
To implement a back account system for new users
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