Answer Posted / vatsava
scope of the auto keyword is local to the block in which
the variable is defined.
for ex:
main()
{
auto int i=1;
{
auto int i=2;
{
auto int i=3;
printf("%d",i);
}
printf("%d",i);
}
printf("%d",i);
}
the op would be 321
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
How can you read a directory in a C program?
Explain how can type-insensitive macros be created?
What is a substring in c?
Explain 'far' and 'near' pointers in c.
What is the meaning of 2d in c?
What is atoi and atof in c?
What is the purpose of void in c?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Explain what are the different file extensions involved when programming in c?
What is operator promotion?
What is the modulus operator?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What is ponter?
What is a char c?