Which of the following about automatic variables within a function is correct?A. Its type must be declared before using the variableB. They are localC. They are not initialized to zeroD. They are global

This question is related to TCS Interview

Showing Answers 1 - 24 of 24 Answers

Pranesh

  • Jan 29th, 2006
 

the answer is GLOBAL

  Was this answer useful?  Yes

laxmikanth

  • Feb 10th, 2006
 

Automatic variables are local variables,they contain garbage value when they are declared.

Not only Automatic variable butalso every variable must be declared before its first use.

  Was this answer useful?  Yes

Gowrishankar

  • Jun 9th, 2006
 

It is a local variable.when you declare the variable in the function it is treted as auto.

  Was this answer useful?  Yes

abhishek sharma

  • Oct 12th, 2011
 

ANS is B they are local ......when the function execute every variable treats to be an auto variable ..register it's own memory and leave the memory when the execution completes or the function terminates.

  Was this answer useful?  Yes

suraj

  • Jul 15th, 2015
 

B. They are local

  Was this answer useful?  Yes

yashu

  • Feb 15th, 2016
 

D. They are global

  Was this answer useful?  Yes

dev

  • Feb 24th, 2016
 

B and C

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions