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

wat is output of the following

int main()
{
const int j=2;
int i;
switch(i)
{
case 1:break;
case j:break;
default:break;
}
}

Answer Posted / vikash gaurav

output will be nothing.... since i will have garbage value.
once going to switch case the value will not match with any
case so default value will be executed.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find a missed value, if you want to store 100 values in a 99 sized array?

1414


Can static variables be declared in a header file?

1062


What is void main () in c?

1214


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1179


Explain how do you determine a file’s attributes?

1050


Can you return null in c?

1169


can anyone please tell about the nested interrupts?

2123


Can a void pointer point to a function?

1025


Explain a pre-processor and its advantages.

1136


What is the purpose of main() function?

1254


What is a stream in c programming?

1153


What is break in c?

1043


Who invented b language?

1417


How can you find out how much memory is available?

1071


how to introdu5ce my self in serco

2007