C Fundamental 3

Explanation:

For commenting in a single line, two consecutive forward slashes are employed. In contrast, a multi-line comment starts with / and concludes with /.

12) What is the data type of "PI" for the below statement:

Example

#define PI 3.141
  • Float data type
  • Double datatype
  • There is no data type associated with PI
  • Syntax error, semi colon is missing with definition of PI

Explanation:

The text linked with a macro statement is enlarged at the line where it is invoked. The expanded text typically functions as a fixed value without any specific data type linked to it.

13) Which operator can be used for accessing the value stored at address of a pointer variable?

Explanation:

The pointer operator is,

The ```

define PI 3.141

Example


*(Value operator) = It returns the value stored at a specific memory address.

## 14) The types of linkages in C programming language are:

- External linkage and None linkage

- Internal linkage and None linkage

- Internal linkage, External linkage and None linkage

- Internal linkage and External linkage

The correct option is (c).

Explanation:

- Internal linkage: A functions and static variables with file scope.

- External linkage: A global, functions and non-static variables.

- None linkage: A local variables.

## 15) Which of the following is true about C Programming?

- Platform Independent

- High level language

- Machine Independent

- Assembly language

The correct option is (c).

Explanation:

The C programming language is a machine-independent programming language. It offers the capability of code portability, allowing source code developed on one machine to be executed on any other machine.

Input Required

This code uses input(). Please provide values below: