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

can we declare a variable in different scopes with different
data types? answer in detail

Answer Posted / tatukula

Yes,
why because that variable scope is ends with in that block only...

int main()
{
int a=20;
printf("%d\n",a);

{
char a='c';
printf("%c\n",a);
}
printf("%d\n",a);
}

output: 20 c 20

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Compare array data type to pointer data type

967


Do array subscripts always start with zero?

1237


How can you check to see whether a symbol is defined?

1048


Write a program on swapping (100, 50)

1063


Why do we use namespace feature?

1009


What is the use of volatile?

1044


What is a structure in c language. how to initialise a structure in c?

1020


Is c language still used?

933


Mention four important string handling functions in c languages .

1053


What is the difference between text and binary modes?

1126


How to throw some light on the b tree?

1021


Write a program to generate random numbers in c?

1048


hi any body pls give me company name interview conduct "c" language only

2231


How many identifiers are there in c?

962


What are the different types of control structures?

986