Determine the output of the following programs. Please pay attention to formatting. // PROGRAM-A #include int...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Determine the output of the following programs. Please pay attention to formatting. // PROGRAM-A #include int main() { int i; char a] ('F', 'A', 'L', 'L', ', '2', '0', '1', '9' }; for(i=8; i >= 0; i--){ printf("%c \t", *(a+i)); //PROGRAM-B #include int main() int a[3][3]=(1,2,3,4,5,6); int j=0, i; while(a[i][j]) { for(i=0; i <3; i++) { a[2][j]+a[i][i]; } j++; } } printf(" "); printf("%c ",*(a+7)); return 0; for(i=0; i <3; i++) { printf("%d ", a[2][i]); } return 0; Determine the output of the following programs. Please pay attention to formatting. // PROGRAM-A #include int main() { int i; char a] ('F', 'A', 'L', 'L', ', '2', '0', '1', '9' }; for(i=8; i >= 0; i--){ printf("%c \t", *(a+i)); //PROGRAM-B #include int main() int a[3][3]=(1,2,3,4,5,6); int j=0, i; while(a[i][j]) { for(i=0; i <3; i++) { a[2][j]+a[i][i]; } j++; } } printf(" "); printf("%c ",*(a+7)); return 0; for(i=0; i <3; i++) { printf("%d ", a[2][i]); } return 0;
Expert Answer:
Related Book For
Fundamentals Of Electric Circuits
ISBN: 9780073301150
3rd Edition
Authors: Matthew Sadiku, Charles Alexander
Posted Date:
Students also viewed these programming questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Python and most Python libraries are free to download or use, though many users use Python through a paid service. Paid services help IT organizations manage the risks associated with the use of...
-
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...
-
Briefly explain the meaning of the following concepts and terms: greenhouse gases (GHGs), the IPCC, the little ice age, the Keeling graph, telekinetic property of the atmosphere, global weirding,...
-
Journalize the six entries that adjust the accounts at December 31. One of the accounts was affected by two different adjusting entries. Unadjusted Trial Balance Adjusted Trial Balance Cash 3,000...
-
Describe why continuously learning about technology allows an executive to better analyze threats and opportunities.
-
During your examination of the financial statements of the Gary Manufacturing Company for the year ended December 31, 19X0, you find that at January 1, 19X0, the company has installed the following...
-
Zogarts manufactured and sold a practice device for beginning golfers. According to statements on the package, the device was completely safe, and a player could never be struck by the devices golf...
-
The standard cost of Product B manufactured by Oriole Company includes 3.8 units of direct materials at $6.30 per unit. During June, 27,000 units of direct materials are purchased at a cost of $6.20...
-
A separately excited DC motor, its rated voltage UN = 220 V; rated speed nN = 1500 r/min; rated line current IN = 41.1 A, and the armature resistance Ra = 0.4 W, it is running at rated constant...
-
A car accelerates in the + x direction from rest with a constant acceleration of a 1 = 1.69 m/s 2 for t 1 = 20 s. At that point, the driver notices a tree limb that has fallen on the road and brakes...
-
An Analysis of the U.S. Supreme Court's Decision in Ricci v. DeStefano: The New Haven Firefighter's Case 1.Were there options available to officials in the City of New Haven in their attempt to...
-
What is Consciousness? Examine a related theoretical construct - consciousness. The understanding of consciousness (what it is and how it occurs) has changed over time as neuroscience has advanced....
-
examine theoretical constructs such as thinking, learning, and memory and how they occur. examine a related theoretical construct - consciousness. The understanding of consciousness (what it is and...
-
related theoretical construct - consciousness. The understanding of consciousness (what it is and how it occurs) has changed over time as neuroscience has advanced. define consciousness? How might...
-
1. Consider the representative consumers problem as follows. The representative consumer maximizes utility by choosing the amount of consumption good C and the amount of leisure l . The consumer has...
-
Figure displays a 12.0 V battery 3 four uncharged capacitors of capacitances C1 = 4.00F, C2 = 6.00F, and C3 = 3.00F. The switch is thrown to the left side until capacitor 1 is fully charged. Then the...
-
Evaluate the following integrals involving the impulse functions: (a) (b) 47 (1-1)dt A" cos 2 t (t-0.5)dt
-
Assuming that the load impedance is to be purely resistive, what load should be connected to terminals a-b of the circuits in Fig. 11.52 so that the maximum power is transferred to the load? 100 10...
-
The following program is the Schematics Netlist of a particular circuit. Draw the circuit and determine the voltage at node 2. RR1 1 2 20 R R2 2 0 50 R R3 2 3 70 R R4 3 0 30 V VS 1 0 20V IIS 2 0 DC 2A
-
A system, consisting of \(2 \mathrm{~mol}\) of \(\mathrm{N}_{2}, 5 \mathrm{~mol}\) of \(\mathrm{H}_{2}\) and \(2 \mathrm{~mol}\) of \(\mathrm{NH}_{3}\) initially, is undergoing the following...
-
The following reaction takes place in a system consisting of \(3 \mathrm{~mol} \mathrm{CH}_{4}, 5 \mathrm{~mol} \mathrm{H}_{2} \mathrm{O}\), \(1 \mathrm{~mol} \mathrm{CO}\) and \(4 \mathrm{~mol}...
-
The study of thermodynamics enables us to understand (a) Whether the transformation of energy is feasible or not (b) To what extent the transformation will take place (c) In which direction the...
Study smarter with the SolutionInn App