menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
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
Ask a Question
Questions
Unanswered
Tags
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
ask related question
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 & Tech
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.4m
questions
12.2m
answers
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
A piston-cylinder device fitted with stops in the cylinder walls contains 2.1 kg of water initially at 150 kPa and 30 °C. Heat is transferred to the system until the final temperature reaches 250 °C. The
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
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