2) Write the code output in the corresponding box: a) #include int main() { char string[5];...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2) Write the code output in the corresponding box: a) #include int main() { char string[5]; char *string2 ="haay"; for (size_t i=0; (string[i] =*(string2+3-1)) != '\0'; i++) { printf("%c",string[i]); } b) #include #include int main() { char *string1[4] ={"hello", "bye", "hehe", "yoyo"}; int array [4]={0}; char *string2[4]; for (int i=0; i <4;i++){ int a; do{ a=rand()%4; while (array[a]!=0); array[a]=1; 2) Write the code output in the corresponding box: a) #include int main() { char string[5]; char *string2 ="haay"; for (size_t i=0; (string[i] =*(string2+3-1)) != '\0'; i++) { printf("%c",string[i]); } b) #include #include int main() { char *string1[4] ={"hello", "bye", "hehe", "yoyo"}; int array [4]={0}; char *string2[4]; for (int i=0; i <4;i++){ int a; do{ a=rand()%4; while (array[a]!=0); array[a]=1;
Expert Answer:
Answer rating: 100% (QA)
a c include stdio h int main char string5 char string2 haay for sizet i 0 stringi string2 3 1 ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
For the year ending December 31, Orion, Inc. mistakenly omitted adjusting entries for $1,500 of supplies that were used, (2) unearned revenue of $4,200 that was earned, and (3) insurance of $5,000...
-
In each case, find the coordinates of v with respect to the basis B of the vector space V. (a) V= P2, v = 2x2 + x - 1, B = {x + 1, x2, 3} (b) V- P2, v = ax2 + bx + c,B = {x2, x+ 1, x + 2} (c) r =...
-
I need help responding to this post.. Discussion 2.1: Psychodynamic Therapy Critique I did my evaluation on the psychodynamic role play with Dr. Todd Grande. 3. My reaction to the session was that it...
-
Recently you read an article regarding a new product introduced late last year by 5G Inc., a consumer products company. The article's author, although praising \(5 \mathrm{G}\) Inc. for providing the...
-
Quick Networking Systems adjusts and closes its books and then prepares financial statements monthly. Quick uses the perpetual inventory system. The company completed the following transactions...
-
Marina had an accident with her car and the repair bill came to $900.She didn't have any emergency fund money and no extra money in her monthly budget, so she ended up borrowing from a pay-day loan...
-
Vitex, Inc. manufactures a popular consumer product and it has provided the following data excerpts from its standard cost system: The company's manufacturing overhead cost is applied to production...
-
SIG Ltd. is evaluating several projects. One of these is a four-year project that is expected to produce revenues of $4 million for the coming year, increasing by $4 million per year for the...
-
Birdy Consulting Co. has the following accounts in its ledger: Cash, Accounts Receivable, Supplies, Office Equipment, Accounts Payable, Common Stock, Retained Earnings, Dividends, Fees Earned, Rent...
-
1. This podcast explores why a small community within western Kenya, the Kalenjen, produces so many of the world's best runners. a. What explanations that are offered fit with those that a physical...
-
A manufacturer of fine whisky currently spends $120,000 per year to send production by-products to landfill. The firm is evaluating an opportunity to acquire a new machine which will enable it to...
-
Presently demand exceeds capacity and Apex has capacity constraints. There are three production lines that operate 24 hours a day for 360 days per year (25,920 hours), which leaves fives days a year...
-
The velocity of a lubricant between two solid surfaces separated by a distance h is given by the function u(y) = Gy + Ay+B, where G is a constant pressure gradient and A and B are arbitrary...
-
A $100,000 dollar face value bond pays 4% interest annually for the next 30 years. The market rate is also 4%,If the bond is strippedWhat will the lump sum and Annuity Sell for?
-
Three forces with magnitudes of 70pounds, 40 pounds, and 60 pounds act on an object at angles of 30, 45, and 135, respectively, with the positive x-axis. Find the direction and magnitude of the...
-
Kent Pham, CPA, is a 45-year-old single taxpayer living at 169 Trendie Street, La Jolla, CA 92037. His Social Security number is 865-68-9635. In 2012, Kent's W-2 as the controller of a local...
-
Jason and Mary Wells, friends of yours, were married on December 30, 2012. They know you are studying taxes and have come to you with a question concerning their filing status. Jason and Mary would...
-
Patty Bayan is a single taxpayer living at 543 Space Drive, Houston, TX 77099. Her Social Security number is 466-33-1234. For 2012, Patty has no dependents, and her W-2 from her job at a local...
-
Lyle Company is considering whether to enter into a franchise agreement that would give the company exclusive distribution rights in a three-state region to a quality line of leisure spas. The...
-
Swanson Corporation is evaluating five different capital expenditure proposals. The companys cutoff rate for net present value analysis is 12%. A 15% salvage value is expected from each of the...
-
At a cash cost of \($330,000,\) Monona, Inc., can acquire equipment that will save \($100,000\) in annual cash operating expenses. No salvage value is expected at the end of its five-year useful...
Study smarter with the SolutionInn App