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...
-
Submarines adjust their buoyancy by changing the amount of water held in rigid containers called ballast tanks. (a) If the mass of a submerged submarine increases while the volume remains the same,...
-
On February 28, 2021, Dolphin Corp. issued 10%, 20-year bonds payable with a face value of $2,100,000. The bonds pay interest on February 28 and August 31. The company amortizes bond discount using...
-
Suppose that in September 2013 a company takes a long position in a contract on May 2014 crude oil futures. It closes out its position in March 2014. The futures price (per barrel) is \($88.30\) when...
-
On June 10, Tuzun Company purchased $8,000 of merchandise from Epps Company, FOB shipping point, terms 2/10, n/30. Tuzun pays the freight costs of $400 on June 11. Damaged goods totaling $300 are...
-
Simplify the given expression and write the answer with only positive exponents. -113 P 3/7 7 3 54x y z 2 w) 3) (w + 2) (3w + w 4 2 (-3x +7x+8)= (x * + 7x *-12x-1) - 5 27-7-28 20-x-22 712-24-8...
-
The statement of cash flows for Riker Company (prepared using the indirect method) follows. Consider the following additional information: (a) Sales for the year totaled $812,350. Cost of goods sold...
-
Provide a SQL query that returns all cartoon characters weighing more than 2500 grams. Provide a SQL query that will return all cartoon characters created in the 1970's Provide a SQL query that will...
-
The magnitude of vector A is 2 5 4 , that of vector B is 2 2 0 and that of vector C is 1 4 4 . Vector A pointing south of west with an angle of 3 2 o below the - x axis, vector B is pointing north of...
-
1-Context of Chemistry LEARNING OBJECTIVE: Apply facts about chemistry in the modern world. Which of these would a chemist most likely study? O a) how cell phone towers affect bird behavior O b.)...
-
Design and develop a C++ pseudocode for a class named personType, that handles the most common attributes/field of a person namely the person??s FirstName and LastName. Your solution must demonstrate...
-
Solution 9 Pw = 1000kg/m SG = fw = 0.5m 7/5x092 = 4.6. 8lokg/m Toookg/m 3 b = wookg/m v = 54104m/s 2= VP = lookg/mx5x10m/5x0.92 Solution: P+PAir + Parastihe h [1m =farm +/googens h 1300+12.054 +6664...
-
Distribution servers are commonly used by organizations to provide updates and patches for widely-used software packages. What are some advantages of this setup? What are some security-related...
-
What elements make up a carbohydrate? What ratio are these always found in? Describe a carbohydrate. What is the function of carbohydrates? What is a disaccharide? Draw the reaction of two glucose...
-
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...
-
Sharing on various digital media impulsively can lead to embarrassment and worse. Have you or has someone you know ever regretted posting a comment, photo, or other digital media online? What...
-
Explain how communication skills fuel career success, and understand why writing skills are vital in a digital, mobile, and social-mediadriven workplace.
-
What employability skills are Canadian employers looking for in an employee?
Study smarter with the SolutionInn App