f1()
{
f(3);}
f(int t)
{
switch(t);
{
case 2: c=3;
case 3: c=4;
case 4: c=5;
case 5: c=6;
default: c=0;}
value of c?
Answer Posted / poornima
Initially, switch statement is ended with semicolon.so
cases will not be alone without switch.It is compilation
error.
If semicolon is not there in switch statement answer is
zero.
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Write a program to generate random numbers in c?
What is the general form of #line preprocessor?
Is c is a high level language?
What is the difference between test design and test case design?
Is c is a middle level language?
What is realloc in c?
What is the difference between memcpy and memmove?
How can I change the size of the dynamically allocated array?
What do you mean by invalid pointer arithmetic?
Explain the use of 'auto' keyword in c programming?
How can I invoke another program or command and trap its output?
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:
Is c a great language, or what?
Can you subtract pointers from each other? Why would you?
What is call by reference in functions?