TCS
Company
Programming
Program
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 a union share their memory location
3) A void pointer can hold the address of any type and can be type casted to any type
4) A static variable holds random junk value if it is not initialized
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 4)
-
- option 1 Since statement 2 and 3 are true
- 4 years agoHelpfull: Yes(2) No(0)
- 1 2 3 statementS are correct so option 3 is right
- 4 years agoHelpfull: Yes(1) No(1)
- 1,2,3 statement are correct so option 2
- 4 years agoHelpfull: Yes(0) No(1)
- Option 2
1 2 3 - 4 years agoHelpfull: Yes(0) No(2)
TCS Other Question