Regarding the scope of the variables. Identify the incorrect statement:A. automatic variables are automatically initialized to 0B. static variables are automatically initialized to 0C. the address of a register variable is not accessibleD. static variables cannot be initialized with any expression

This question is related to TCS Interview

Showing Answers 1 - 5 of 5 Answers

Manan

  • Apr 11th, 2006
 

answer is B. static variables are automatically initialized to 0

  Was this answer useful?  Yes

Karthik Raj

  • Aug 17th, 2006
 

A is the incorrect statement.Automatic variables have junk value until defined

  Was this answer useful?  Yes

snehlata

  • Sep 24th, 2007
 

A is incorrect statement because we have to initialize some value according to variable's data type in it otherwise it will accept any garbage value (value associated with last variable or last program).

  Was this answer useful?  Yes

narender

  • Oct 11th, 2011
 

a

  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