a. In your own words, give a definition of a "pointer" in C++.
b. In your own words, explain the array/pointer duality law relationship.
c. In your own words, explain the two mechanisms for manipulating strings in C++.
Pointer:
In Programming Language C++, a pointer is a special type of variable which is used to store the address of another variable which has the same data type as the pointer data type.
Array/pointer duality law relationship:
An array and pointer have a complicated relationship because the array is treated as a pointer by the compiler and the name of the array work as a constant pointer. When we pass an array to the function as a parameter then the base address of the array is passed and because of this, the original array element can be changed by that function.
The name of the array is the base address or pointer to the first element of the array. By using the base address, we can access all other elements of the array as well.
Two mechanisms for manipulating strings in C++:
We can declare an array in two ways as given below:
char str1[] = "hello";
string str2 = "hello";
The first declaration is an array of characters and the second declaration is using the library functionality.
First mechanisms:
We can manipulate an array by using the index as given below:
str1[0] is representing the first character.
str1[1] is representing the second character.
str1[2] is representing the third character.
We can use loops to manipulate any operation like to find the size of the string, to copy the string, etc
Second mechanisms:
We can manipulate an array by using the string class and its associated method as given below:
The function strlen() is used to find the length of the string.
The function strcat() is used to concatenate the one string at the end of the other string.
The function strcpy() is used to copy one string into another string.
a. In your own words, give a definition of a "pointer" in C++. b. In your...
In your own words, distinguish between ? and p. Give a definition of ? and p as part of your response.
Response Questions Part A To B A) Use Your Own Words For Your Response: What is the law of supply? Give an example of how you have observed the law of supply at work. What is the relationship between the law of supply and the supply curve? B) Use Your Own Words For Your Response: How do markets coordinate the independent decisions of buyers and sellers?
Explain in your own words (1). The definition of the derivative of a function f(x) at a point (x1, y1) on its graph. [ It is indicate by f(x)]. (2). Does it exist all the time. (3). How is it related to the slope of the tangent line (4). Give a practical example where the definition is used Note: Two page written project, neatly typed, spellchecked, stapled, and handed in. Deadline: April 26/2019 by 11:59 AM Explain in your own...
definition of erhics in your own words
in your own words , choose two ethical principles discussed explain the definition, and use examples for each
Explain in your own words the alternative minimum tax (AMT) and include in your definition: (a) why was it implemented by the IRS, (b) who was the original targets of the AMT, (c) how it is calculated, and (d) whether you think it was fair to implement the tax, why or why not.
1. Rephrase each definition in your own words Salami shaving Manipulating programs or data in order to take small amounts of money from many different accounts. The victims are often unaware because the amounts are so small Trojan horse Contains hidden instructions to do prohibited tasks while appearing to do something useful Piggybacking Using another person’s identification code or files before he/she has logged off 2. The transformation factor is one of the reasons that make computer ethics important, explain...
(1) In your own words, give an example of a choice that you make that exhibits the law of diminishing marginal utility. (2) Explain why the law of diminishing marginal utility is upheld for this choice. (3) How does this relate to your willingness and ability to buy the good?
in your own words, provide a working definition of business ethics.
Succinctly and in your own words describe to the group of students the definition of atherosclerosis. Do not directly copy the definition from your source - you should paraphrase and provide the definition in a way that you understand and remember the definition).