Write a program to show the workingof auto variable.

Answer Posted / shrikantauti

main()
{
auto int i,j;
printf("%d%d", i,j);
}

/*
output could look like:
1211 221
*/

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we write return 0 in c?

542


What would be an example of a structure analogous to structure c?

570


What is the value of uninitialized variable in c?

562


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

572


What is maximum size of array in c?

575






What is the difference between functions getch() and getche()?

613


What are the different types of data structures in c?

593


what is different between auto and local static? why should we use local static?

634


Write a program to show the change in position of a cursor using c

573


What are header files in c?

609


Why pointers are used in c?

578


difference between native and cross compilers

1665


Where register variables are stored in c?

538


What does s c mean in text?

601


What does the file stdio.h contain?

597