Write a program to show the workingof auto variable.

Answers were Sorted based on User's Feedback



Write a program to show the workingof auto variable...

Answer / raj

#include<stdio.h>
main()
{
auto int n=0;
{
int n=1'
printf("%d",n);
}
}

Is This Answer Correct ?    10 Yes 1 No

Write a program to show the workingof auto variable...

Answer / 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

More C Interview Questions

what is the advantage of function pointer

16 Answers   CMC, CS, Freshdesk, L&T, LG Soft, Matrix, TCS,


How to print %d in output

6 Answers   Wipro,


Explain what does the function toupper() do?

0 Answers  


What is the auto keyword good for?

0 Answers  


What is the use of the restrict keyword?

1 Answers  


Explain what is the use of a semicolon (;) at the end of every program statement?

0 Answers  


Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.

0 Answers  


What is a static variable in c?

0 Answers  


Do array subscripts always start with zero?

0 Answers  


how to make program without <> in library.

1 Answers   ADITI,


What is calloc()?

0 Answers   Adobe,


Explain how do you declare an array that will hold more than 64kb of data?

0 Answers  


Categories