TCS Company Programming Variables

Which of the above are correct statements?
1. 2,3
2. 1,2
3. 1,2,3
4. 1,2,3,4

Read Solution (Total 1)

TCS Other Question

Given the below statements about C programming language:
1) main() function should always be the first function present in a C program file
2) all the elements of an union share their memory location
3) A void pointer can hold address of any type and can be typcasted to any type
4) A static variable hold random junk value if it is not initialised
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