To what value do nonglobal variables default?
1) auto
2) register
3) static
Answers were Sorted based on User's Feedback
Answer / anilkumar927@gmail.com
static
explation:
all non global variables are act as static
all local variables are act as auto
| Is This Answer Correct ? | 0 Yes | 1 No |
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?
write a program without using main function?
the format specified for hexa decimal is a.%d b.%o c.%x d.%u
What are dynamically linked and statically linked libraries?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
3 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
what is the diference between pointer to the function and function to the pointer?
every function has return the value?
What is the difference between fread buffer() and fwrite buffer()?
void main() { char c; while(c=getchar()!='\n') printf("%d",c); } o/p=11 why?
Predict the output or error(s) for the following: 25. main() { printf("%p",main); }
What are enums in c?
How can you dynamically allocate memory in C?