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
What is the g value paradox?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
What are the back slash character constants or escape sequence charactersavailable in c?
How can my program discover the complete pathname to the executable from which it was invoked?
How to draw the flowchart for structure programs?
What is linear search?
What does the && operator do in a program code?
What are the ways to a null pointer can use in c programming language?
Which header file is used for clrscr?
Explain how can I make sure that my program is the only one accessing a file?
Explain what will the preprocessor do for a program?
What is a structural principle?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is 1d array in c?
What is the difference between char array and char pointer?