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;
application problem of tower of hanoi
coding
wap to padovan string in c
Define the Increment and Decrement Operators in c language? C offers two special operators -and ++ called decrement and increment operators respectively and these are unary ope
A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of t
Changing Field width The printf() and scanf() functions from the standard library, use width specifier for controlling the width of its output . Similarly, the ostream class al
Spider webs have two types of silk, sticky silk and strength silk, spiders do not move on the sticky silken threads only on the strength threads. Assume one type of spider creates
Integer literal Integer is numbers without fractional parts. e.g. 20 // Decimal 024 // Octal 0x14 // Hexadecimal To indicate long, unsigned,
pebble merchant problem
Default Value Functions, When declaring a function we can specify a default value for each parameter. This value will be used if that parameter is left blank when calling to the f
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