TCS
Company
Programming
Functions
If a function is defined as static, it means
1. The value returned by the function does not change
2. all the variable declared inside the function automatically will be assigned
initial value of zero
3. It should be called only within the same source code / program file.
4. None of the other choices as it is wrong to add static prefix to a function
Read Solution (Total 5)
-
- 3) is an answer, because we can use static function in same source file, not in any other file.
- 6 years agoHelpfull: Yes(13) No(0)
- 3)It should be called only within the same source code / program file.
- 5 years agoHelpfull: Yes(1) No(0)
- option 2 is right one.. Static always means its value is constant and doesnt change. it is predefined and fixed to zero.
- 6 years agoHelpfull: Yes(0) No(5)
- it should be called only
- 5 years agoHelpfull: Yes(0) No(0)
- 3)It should be called only within the same source code / program file.
- 5 years agoHelpfull: Yes(0) No(0)
TCS Other Question