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

main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

1 Answers  


What are the various types of control structures in programming?

0 Answers  


Explain how can you check to see whether a symbol is defined?

0 Answers  


What is 2c dna?

0 Answers  


When should you use a type cast?

0 Answers  






Is there a way to jump out of a function or functions?

0 Answers  


Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program

5 Answers   Mascot,


Write a program in c using only loops to print * * * * * *******

2 Answers   IBM,


What is the acronym for ansi?

0 Answers  


logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............

2 Answers   Infosys,


What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.

1 Answers  


What does the characters “r” and “w” mean when writing programs that will make use of files?

0 Answers  


Categories