answersLogoWhite

0


Best Answer

In C, there will be a part like this:

char s1[] = "END";
char s2[] = "REVEREND";
size_t l1, l2;

l1= strlen (s1);
l2 = strlen (s2);

if (l1>=l2 && strcmp (s1, s2+(l2-l1))==0) puts ("Yeah");

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program that accepts two stringsThe program should determine whether the first string occurs at the end of the second string?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you determine if a corporate program is meeting its intended objectives?

Answering "How would i determine whether the program was meeting its objectives for both the company and the staff in the company?"


Write a c program to determine whether a matrix is singular or not?

A c program is also known as a computer program. A singular matrix has no inverse. An equation to determine this would be a/c=f. <<>> The determinant of a singular matix is zero.


What COAs might you take to improve your situational awareness of Safety Program?

determine whether the control measures were implemented and effective


Is this program scam?

To determine whether or not a program is a scam, ask yourself whether it sounds too good to be true. If it sounds too good to be true, it usually is a scam. Also if you have to pay in order to begin work, it is usually a scam.


What kind of digital camera should you use for a Minolta SLR lens?

You would have to use a Minolta SLR digital camera with a Minolta lens. However, don't automatically assume an old Minolta lens will work on a digital camera. You need to determine whether the digital camera accepts interchangeable lenses and whether it accepts the specific Minolta SLR lens and mount you have. There is no real generic answer to this question.


How do you write a C program to check whether the number is odd or even Ps-using DEV complier?

To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.


How do you determine whether a rock is a rhyolite or an andesite?

The composition of the rock will determine whether it is a rhyolite or an andesite.


What is the Section 8 Voucher program price for a studio apartment in Kauai?

The Section 8 voucher program depends on what your income is and whether or not you are disabled or retired. A worker from the housing authority has to determine what the cost will be based on the above information.


What are you guilty of when you make a copy of a copyrighted software program?

You are guilty of copyright infringement and in most cases it is considered a felony if you use it improperly. And they determine whether or not you used it improperly.


Why do you need a database?

is a program that allows you to create and managedatabases. Adatabase is a place where you can store information related to a specific topic. How you intend to use the information will determine whether you need an Access database or a different program to create and manage your data


What is experimental research design describe its types and importance?

The pre-post design, a treatment group and a control group, and random assignment of study participants. Its importance is to determine whether a program or intervention had the intended casual effect on program participation.


What can Electromyography determine?

EMG can determine whether a particular muscle is responding appropriately to stimulation, and whether a muscle remains inactive when not stimulated