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;
what is programming?
A: Use references when you can use, and use pointers when you have to. References are generally preferred over pointers whenever you don't require "reseating". Usually this mean
I want to change C++ code to Python extension Project Description: I have the C++ source code for an executable that takes a path to an image file as the input and prints tex
Rules of function: Inline function created without prototype it reduces the memory and it is used only for small function. Inline function cannot have recursion, static var
Project Description: I want an app that the user can download it from the play store and use it as a keyboard for texts and writing. Just like the Samsung keyboard and the arabi
One person who is specialist at programming and solving problems with a computer Project Description: Dear Potential computer, hardware, programming and software genius, I
* * * * * * * * *
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec
Need FTP Upload and MySQL Project Description: We are in need of an executable application that will be execute as a scheduled task on Windows Server 2008 R2 and can perform
WHAT IS CGI?
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