Answer:
declaration of pointer variables are done using *
Explanation:
* denotes the declared variable is a pointer which can hold address of another location. To get values of any address & is used. For example, we have an integer variable <em>a</em> to which holds a value 10. if you want to read the address of the variable <em>a</em>, use <em>&a</em>. To store this address in any other memory declare a pointer variable.
int a = 10;
int *loc_a;
loc_a = &a;
Answer:
Explanation:
The following code is written in Java and runs a thread every 45 seconds that adds the two counters together and saves them in an integer variable called register. Then prints the variable. If this code runs 5 times it automatically breaks the loop. This can be changed or removed by removing the breakLoopCounter variable.
public static void add_Counters(int counterOne, int counterTwo) {
int register = 0;
int breakLoopCounter = 0;
try {
while (true) {
register += counterOne + counterTwo;
System.out.println(register);
Thread.sleep(45000);
breakLoopCounter += 1;
if (breakLoopCounter == 5) {
break;
}
}
} catch (InterruptedException e) {
e.printStackTrace();
}
}
Answer:
<u>Property</u>
Explanation:
Intellectual Property (IP) is the lawful protection of human idea/intellect by unauthorised users. These human intellects are intangible assets that have both moral and commercial value. They include ideas, art, music, movies, software e.t.c.
Common types of Intellectual property include
- Copyrights
- patents
- Trade Marks
- Trade Secrets