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;
C Program to FIND THE EVEN WORDS IN THE STRING #include conio.h> #include stdio.h> void main() { char a[50],temp; int i=0,k=0,l[25],c=0,r=0;
Write a ''C'' program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.
Operators in C++: All C operators are valid operators in C++ also. Besides C++ has developed some new operators like Operators and their Expression: 1. Logical op
Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed
Ask question #Minimum 100 words awhat is the pre condition for binary searching ccepted#
What are the various types of control structures in programming? - Primarily there are 3 types of control structures in programming: Sequence, Selection and Repetition. - Se
Define the System Oriented Data Files? System-oriented data files are further closely related to the computer's operating system than Stream- oriented data files and they are s
i need a program for finding the last fibonacci number
This is what I need help with. "Create a program creates an interface allowing the user to select from some other programs I have made one being a money converter and the other ca
Problem 1 What is the difference between function declaration and function definition? 2 Write a recursive function to find sum of even numbers from 2 to 10. 3 List some
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