Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / madhu

As t = 3,it goes to case 3.But there is no break in that
case so it proceeds further down to default and c becomes 0.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are keywords c?

985


Explain what is wrong in this statement?

1070


What are c header files?

952


Explain the difference between the local variable and global variable in c?

1028


explain what is an endless loop?

1036


Differentiate between the expression “++a” and “a++”?

1205


What is a stream in c programming?

1086


Is c is a high level language?

1132


Write a program to know whether the input number is an armstrong number.

1074


What are structure members?

1028


What is omp_num_threads?

1041


Can a program have two main functions?

1065


What is a header file?

1032


Can you please explain the scope of static variables?

1000


Explain how do you declare an array that will hold more than 64kb of data?

1402