menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
What does the following code display? int d = 9, e = 12; System.out.printf("%d %d\\", d, e); a. %d 9 b. %9 %12 c. %d %d d. 9 12
asked
Jul 7, 2023
193k
views
0
votes
What does the following code display?
int d = 9, e = 12;
System.out.printf("%d %d\\", d, e);
a. %d 9
b. %9 %12
c. %d %d
d. 9 12
Engineering
college
Zach Brantmeier
asked
by
Zach Brantmeier
7.7k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
Answer:
The correct answer is option d.
9 12
Step-by-step explanation:
Because the System.out.printf command is used to display output.
In this d=9, and e= 12. So the 9 and 12 output will be display.
\\ is used for display output in new line
Taha Kirmani
answered
Jul 12, 2023
by
Taha Kirmani
8.0k
points
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Mar 25, 2024
189k
views
#include void main() ( int x = 1, z = 3; } int y = x << 3; printf("%d\\",y); -2147483648 -1 Run time error 8
Thousand
asked
Mar 25, 2024
by
Thousand
8.5k
points
Engineering
college
1
answer
0
votes
189k
views
asked
Sep 26, 2024
166k
views
What would be the output of the following programs } int a = 300, b, c; if (a >= 400) b = 300; c = 200; printf ("\\%d %d", b, c);
Alexblum
asked
Sep 26, 2024
by
Alexblum
8.2k
points
Computers and Technology
college
1
answer
3
votes
166k
views
asked
Apr 25, 2024
51.9k
views
Given the following function definition, void shift(int*a, int*b) ( *a = b *b = *a; } what is the output after the following function call int first = 0, second = 10; shift(7first, &second); printf('%d
Denis Tulskiy
asked
Apr 25, 2024
by
Denis Tulskiy
8.7k
points
Engineering
college
1
answer
1
vote
51.9k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
4. Which of the following is the first thing you should do when attempting to park? A. Securing the parking spot by standing in it B. Turning on your hazard lights C. Confirming the space can fit your
A water towers lowest point is 405 ft and the main line is 6 feet below the ground. The ground elevation is at 276 ft. The main line travels 2.9 miles. The pipe will travel through the following flanged
An activated sludge plant is being designed to handle a feed rate of 0.438 m3 /sec. The influent BOD concentration is 150 mg/L and the cell concentration (MLVSS) is 2,200 mg/L. If you wish to operate the
The bulk modulus of a fluid if it undergoes a 1% change in volume when subjected to a pressure change of 10,000 psi is (a) 0.01 psi (b) 0.001 psi (c) 0.00001 psi (d) 0.000001 psi (e) none of these
A car has an initial speed of 10 m/s. It then undergoes a constant acceleration of 0.05 m/s^2 over a distance of 5 km. Determine: a) The car final speed. b) The time needed to travel the 5 km.
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org