Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. The main) function section contains two parts namely: (a) Function part and e

ID: 3874636 • Letter: 1

Question

1. The main) function section contains two parts namely: (a) Function part and executable part (b) Declaration part and executable part (c) Declaration part and I (d) Subprogram part and documentation part 2. The command gcc program.c (a) Causes an error (b) Puts the compiled program into the file program (c) Puts the compiled program into the file a.out (d) Saves the fíle program.c Which of the following can be used in C (a) An array of structures (b) A pointer as a member of a structure (c) An array as a member of a structure (d) All of the above 3. 4. enum day { sun, mon= 5, tue, wed-1, thu, fri, sat); The value of the identifier fri is? (a) 2 (b) 3 (c) 4 (d) 5 int x, *p Which of the following is equivalent to x? (a) p (b) &p; (c) *&x; (d) &*p 5. &x;

Explanation / Answer

According to chegg guidelines i have to solve first four bits only.

1.

main function contain 2 parts those are

Declaration part : we can declare variables.

Executional part : In this phase we can run the program.

Option b correct.

2.

gcc program.c puts the compiled program into the a.out.

Here the executable written as named a.out.

Option c correct.

3.

The c can use

Option d correct.

4.

Here strting day is wed.

The value of the identifier fri = 3.

Option b correct.

5.

Example:

int x=10,*p=&x;

cout <<x<<endl; // It print 10

cout <<*&x<<endl; // It print 10

Option c correct.