Write a function that finds the last instance of a character in a string
Submitted by: Administratorchar *lastchar(char *String, char ch)
{
char *pStr = NULL;
// traverse the entire string
while( * String ++ != NULL )
{
if( *String == ch )
pStr = String;
}
return pStr;
}
Submitted by: Administrator
{
char *pStr = NULL;
// traverse the entire string
while( * String ++ != NULL )
{
if( *String == ch )
pStr = String;
}
return pStr;
}
Submitted by: Administrator
Read Online Programming Algorithms Job Interview Questions And Answers
Top Programming Algorithms Questions
☺ | How to find median of a BST? |
☺ | Define and describe an iterative process with general steps of flow chart? |
☺ | State recursion and its different types? |
☺ | What is ARCBALL? |
☺ | What are the two ways through which the Markov algorithm terminates? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |