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
Why n++ execute faster than n+1 ?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Are comments included during the compilation stage and placed in the EXE file as well?
What is integer constants?
What are header files and what are its uses in C programming?
Write a C program to count the number of email on text
How do you use a pointer to a function?
What is stack in c?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
How can I pad a string to a known length?
Explain what’s a signal? Explain what do I use signals for?
What are the __date__ and __time__ preprocessor commands?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
Explain 'bus error'?
Is there a way to compare two structure variables?