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...

Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
case 3
--i;
Output of i after executing the program

Answer Posted / shruti

WHAT IS THE VALUE OF I BEFORE ENTERING THE SWITCH CASE???

if the values is something other than 1 , 2 , 3 there wont
be any effect, ASSUMING u have forgotton to give the curly
braces.


otherwise,
you will get an error, if the curly braces are not there
for the switch case.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's a good way to check for "close enough" floating-point equality?

1111


How can I generate floating-point random numbers?

1069


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2135


List the difference between a While & Do While loops?

1059


What is line in c preprocessor?

1017


What is the difference between malloc calloc and realloc in c?

1094


What is the use of header?

1067


How can you tell whether a program was compiled using c versus c++?

1060


Tell us two differences between new () and malloc ()?

1133


What is an array in c?

1011


Write a program to print factorial of given number using recursion?

973


Difference between strcpy() and memcpy() function?

1090


What are the benefits of c language?

1125


How do you define a string?

1064


What do you mean by c what are the main characteristics of c language?

995