Computer Science, asked by rumaanahashmi56751, 1 year ago

Q3: 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 typecasted to any type 4) a static variable hold random junk value if it is not initialised

Answers

Answered by anuraggtm975
5

Answer:

a static variable is a variable that has been allocated "statically", meaning that its lifetime run of the program.

Answered by phillipinestest
1

Main () function should always be first function to be present in a C programming file.

Answer: Option 1

Explanation:

The main () function is the introductory function of the program being introduced to the system introducing the further programming commands in it. The execution of the set of commands is done when the main function is called in the set. Therefore, the declaration of main function is done at the beginning.

Similar questions