What will be the output of the following program? #include int main() { int x = 1; switch (x) { case 1: printf("Choice is 1 \n"); default: printf("Choice other than 1 \n"); } return 0; }
What will be the output of the following program? #include int main() { int x = 1; switch (x) { case 1: printf("Choice is 1 \n"); default: printf("Choice other than 1 \n"); } return 0; }
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
![What will be the output of the following program?
#include <stdio.h>
int main()
{
int x = 1;
switch (x)
{
case 1: printf("Choice is 1 \n");
default: printf("Choice other than 1 \n");
}
return 0;
}](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb46eedac-d3cc-4122-b0d6-b63b05109708%2Fe95c2cdf-de41-47ab-88ae-2fa47d621895%2Fa4hq6f_processed.png&w=3840&q=75)
Transcribed Image Text:What will be the output of the following program?
#include <stdio.h>
int main()
{
int x = 1;
switch (x)
{
case 1: printf("Choice is 1 \n");
default: printf("Choice other than 1 \n");
}
return 0;
}
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
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
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)