1. command line program for match two string and also allow the character
• * -- any number of character
• ? – Single Character
Ex.: I/p:- This is a string
Th?s is *g
O/p Both string are Same

pls help me to solve this program in c

Compare each string one character at a time in a loop. If one string contains a ? then assume it is matched with whatever character is in the other string. If one character contains a * then look at the next character (in your example its a 'g'), then in the other string advance the pointer forward until you find either end-of-string or the first 'g'.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.