To what value do nonglobal variables default?




1) auto


2) register


3) static

Answers were Sorted based on User's Feedback



To what value do nonglobal variables default? 1) auto 2) register 3) stati..

Answer / k.kavitha

1) Auto

Is This Answer Correct ?    15 Yes 1 No

To what value do nonglobal variables default? 1) auto 2) register 3) stati..

Answer / shruti

Non global variables = local variables..

all non global variables default auto..

Is This Answer Correct ?    3 Yes 0 No

To what value do nonglobal variables default? 1) auto 2) register 3) stati..

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

To what value do nonglobal variables default? 1) auto 2) register 3) stati..

Answer / srinivas

static

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More C Interview Questions

proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?

7 Answers   Hughes,


write a program without using main function?

2 Answers   TCS,


the format specified for hexa decimal is a.%d b.%o c.%x d.%u

7 Answers   TCS,


What are dynamically linked and statically linked libraries?

2 Answers  


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?

2 Answers   Infosys,


every function has return the value?

1 Answers  


What is the difference between fread buffer() and fwrite buffer()?

1 Answers  


void main() { char c; while(c=getchar()!='\n') printf("%d",c); } o/p=11 why?

8 Answers   Wipro,


Predict the output or error(s) for the following: 25. main() { printf("%p",main); }

3 Answers   Google, ME,


What are enums in c?

1 Answers  


How can you dynamically allocate memory in C?

2 Answers  


Categories