Answer:
import java.util.Scanner;
public class DashLine {
public static void main(String[] args) {
// Declaring variables
int n;
/*
* Creating an Scanner class object which is used to get the inputs
* entered by the user
*/
Scanner sc = new Scanner(System.in);
// Getting the input entered by the user
System.out.print("Enter a number :");
n = sc.nextInt();
// calling the method by passing the user entered input as argument
dashedLine(n);
}
//This method will print the dashed line for number greater than zer
private static void dashedLine(int n) {
if (n > 0) {
for (int i = 1; i <= n; i++) {
System.out.print("-");
}
System.out.println();
}
}
}
Explanation:
Answer:
The Pointer P becomes a dangling pointer.
Explanation:
int calculate(){
int *p = (int*)malloc(10);
*p = 10;
return p;
}
In this program, the scope of p is only with the calculate function block. Hence, once the compiler comes out of the function, it can no more access the pointer p or the memory location p is pointing to. To overcome the dangling pointer, we need to declare p as static, so that the scope of p is throughout the program.
Answer:
Explained
Explanation:
Yes, I agree that digital signatures are the best way to protect the data in the date in question. A digital signature is mathematical technique used to validate the authenticity and integrity of a massage. Digital signature is far more inherent security. It is built to solve problems of tempering and impersonation of digital documents. It allows the authorized user to have authentic right, and the unauthorized person is denied access.
An IP address is mostly for your WIFI . Internet Protocol .
Overtype Mode is where you are making changes to text (putting in new characters)
I would say safety. Not putting too much information about yourself on the internet is a good thing to do, because people can follow you (in a bad way). Another thing to think about is not putting information about others if they do not want it on the internet. Also, be careful while you are around computers. You do not want to spill any water on it, or drop it.