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
Compare array data type to pointer data type
Do array subscripts always start with zero?
How can you check to see whether a symbol is defined?
Write a program on swapping (100, 50)
Why do we use namespace feature?
What is the use of volatile?
What is a structure in c language. how to initialise a structure in c?
Is c language still used?
Mention four important string handling functions in c languages .
What is the difference between text and binary modes?
How to throw some light on the b tree?
Write a program to generate random numbers in c?
hi any body pls give me company name interview conduct "c" language only
How many identifiers are there in c?
What are the different types of control structures?