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

Describe the order of precedence with regards to operators in C.

1047


How do you determine the length of a string value that was stored in a variable?

1125


Can you please explain the difference between malloc() and calloc() function?

1123


Who developed c language?

1095


Write the syntax and purpose of a switch statement in C.

1109


What are header files in c?

1080


What is data structure in c language?

1112


What does nil mean in c?

1263


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

3183


Are enumerations really portable?

1028


Explain how can I make sure that my program is the only one accessing a file?

1225


Write a program to check prime number in c programming?

1094


Explain what is the benefit of using #define to declare a constant?

1193


Differentiate between functions getch() and getche().

1051


What are the 3 types of structures?

1033