consider the following program sigment
int n,sum=1;
switch(n) {
case 2:sum=sum+2;
case 3:sum*=2;
break;
default:sum=0;}
if n=2, what is the value of sum
a.0
b.6
c.3
d.none
Answer Posted / mytri
6
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is meant by recursion?
Why is c not oop?
What is use of pointer?
What is structure pointer in c?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What are categories used for in c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is the best way to comment out a section of code that contains comments?
What are header files in c programming?
What is a void pointer in c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
How is a structure member accessed?
What is p in text message?
what are enumerations in C