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 does the file stdio.h contain?

1 Answers  


what is the hardware model of CFG( context free grammar)

0 Answers   Microsoft,


Is it valid to address one element beyond the end of an array?

1 Answers  


Write a program to find the smallest and largest element in a given array in c language

11 Answers   Microsoft, Vembu,


Which header file is essential for using strcmp function?

1 Answers  


in which language c language is written?

2 Answers  


Find string palindrome 10marks

5 Answers   Honeywell, Infosys, Riktam, Roland,


What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value

3 Answers   Accenture, Wipro,


Why are all header files not declared in every c program?

1 Answers  


How to removing white spces in c programming only bu using loops

2 Answers  


Can we declare function inside main?

1 Answers  


How can I sort a linked list?

1 Answers  


Categories