x = 2, y =1, z =3, what is the value of y after executing the following codes? switch(x) { case 0: x =2; y =3; case 1: x =3; break; default: x=3; y=2; } A) 1 B) 2 C) 3 D) 4
x = 2, y =1, z =3, what is the value of y after executing the following codes? switch(x) { case 0: x =2; y =3; case 1: x =3; break; default: x=3; y=2; } A) 1 B) 2 C) 3 D) 4
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
x = 2, y =1, z =3, what is the value of y after executing the following codes?
switch(x)
{
case 0: x =2; y =3;
case 1: x =3; break;
default: x=3; y=2;
}
A) 1
B) 2
C) 3
D) 4
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps