subject

5. Write a function named “hasTwoQuestionMarks” that accepts parameters of the same as command-line arguments ( argc and argv ). It returns true if one of the arguments has a “??” character and false otherwise. If it has no argument, it will return false. Once the “??” characters are found, please do not continue to the search.

Please note that you cannot use string class, string methods or any string function such as strlen. Please use only array notation, pointer to character, and/or pointer arithmetic and make use of the fact that this is a C-string.

Please write the main program that accepts argc and argv and pass them to this function and print out its result.

For example, if the arguments are“??two”,“one two??“ or “one t??o” it will return true and if it is“", “?”, “/?”or “one tw?o?”, it will return false.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 24.06.2019 02:00
Read the following scenario, and then answer the question below. you want to send an e-mail to your boss requesting a meeting to discuss a raise. what is the best example of an e-mail to an employer about this meeting? “hey jason. can we chat about getting me more money soon? let me know. peace, meg.” “hello jason. pardon me for sending yet another e-mail today about my need to talk to you about my position and a possible pay increase. i am dying to know when you can talk. sincerely, meg.” “hello jason. i have been with the company for one year and have taken on more responsibilities than outlined in my job description. i would appreciate an opportunity to speak with you about my position. let me know when we can schedule a meeting. you, meg.” “greetings jason! i hope this e-mail finds you well and happy today. i really, really want to talk to you about something important. i am not sure if you have time. i hope you do. get back in touch with me and let me know when we might talk. ever so much for taking the time to read this. sincerely, meg.”
Answers: 3
question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior to sending the first ping request
Answers: 1
You know the right answer?
5. Write a function named “hasTwoQuestionMarks” that accepts parameters of the same as command-line...
Questions
question
Mathematics, 06.05.2020 02:07
question
Mathematics, 06.05.2020 02:07
question
Mathematics, 06.05.2020 02:07
Questions on the website: 13722360