Question & Answer: A variable name a value. 1, references a value and a pointer variable name references a) indirectly, directly b) directly, directly c) directly, indirectly d) indirectly, indirectly 2. T…..

A variable name a value. 1, references a value and a pointer variable name references a) indirectly, directly b) directly, directly c) directly, indirectly d) indirectly, indirectly 2. The definition char string1[] first; = is equivalent to a) char string1) ,, , s0 b) character string![] = { L, i, r, s, t, b) char string1 [ ] = { f, i, r, s, t }; c) char stringi ,, r,s,t,o ,0, }; 3. Using the following function definition: AB(C the function name is represented by. a) A b) B c) C d) D
media%2F8ee%2F8ee99471-a26b-4101-9ae3-64
media%2F2c0%2F2c0793b6-fdc2-4e5a-a612-19

A variable name a value. 1, references a value and a pointer variable name references a) indirectly, directly b) directly, directly c) directly, indirectly d) indirectly, indirectly 2. The definition char string1[] “first”; = is equivalent to a) char string1) ”,”, ”, ‘s”’0 b) character string![] = { ‘L’, ‘i’, ‘r’, ‘s’, ‘t”, b) char string1 [ ] = { ‘f’, ‘i’, ‘r’, ‘s’, ‘t’ }; c) char stringi ”,”, ‘r’,’s’,’t’,o ,0, }; 3. Using the following function definition: AB(C the function name is represented by. a) A b) B c) C d) D

Expert Answer

 

1)Answer:c. directly, indirectly

Explanation:

A non-pointer variable name directly references a value and a pointer variablename indirectly references a value.

4)Answer: main

Explanation:

The name main is not a keyword in C or Java. From the compiler’s perspective, main() is a function. Just like any other function that you may define in your program, such as factorial(), sort() etc.

5)Answer:

d.do…while

Explanation:

do … while is just like a while loop except that the test condition is checked at the end of the loop rather than the start. This has the effect that the content of the loop are always executed at least once.

Basic syntax of do…while loop is as follows:

Show Example

do
{
   Single statement
   or
   Block of statements;
}while(expression);

6)Answer:

d.c program translated into machine language code

Explanation;

compiler is a special program that processes statements written in a particular programming language and turns them into machine language or “code” that a computer’s processor uses.

7)Answer:

(a)locations in the computer’s memory

Explanation:

Variable names actually correspond to locations in the computer’s memory.

8)Answer:

b.semicolon(; )

Explanation:

Every ‘C‘ statement must end with a semicolon ( ; )

9)Answer:

c.proto type

explanation:

The first line of the function definition looks a lot like you are declaring a variable. The int at the beginning of the line tells us that the function will be returning an integer. This could be any valid data type such as double , char , etc. Next we have the name of the function, which in this example is square.

10)Answer:

a)&

explanation:

The address-of operator is a unary operator represented by an ampersand (&). It is also known as an address operator.

Still stressed from student homework?
Get quality assistance from academic writers!