Answer:
jointly
Explanation:
Because Hardware and Soft ware have to JOIN together to make something work
I hope i helped!
Answer:
Data mining is a process of extracting and discovering patterns in large data sets involving methods at the intersection of machine learning, statistics, and database systems.
Answer:
// function with memory leak
void func_to_show_mem_leak() {
int *pointer;
pointer = malloc(10 * sizeof(int));
*(pointer+3) = 99;}
// driver code
int main()
{
// Call the function
// to get the memory leak
func_to_show_mem_leak();
return 0; }
Explanation:
Memory leakage occurs when programmers allocates memory by using new keyword and forgets to deallocate the memory by using delete() function or delete[] operator. One of the most memory leakage occurs by using wrong delete operator.
The delete operator should be used to free a single allocated memory space, whereas the delete [] operator should be used to free an array of data values.
Answer:
The program to this question can be described as follows:
Program:
#include <stdio.h> //defining header file
int main() //defining main method
{
int* numItemsPointer; //defining pointer variable
int numItems; //defining integer variable
scanf ("%d", &numItems); //input value from user end
if(numItems < 0) //defining if block to check value
{
numItemsPointer = NULL; //assign value to null
printf ("Items is negative\n"); //print message
}
else //else block
{
numItemsPointer = &numItems; //holds address
numItems = numItems * 10; //multiple by 10
printf("Items: %d\n", *numItemsPointer); //print value
}
return 0;
}
Output:
99
Items: 990
Explanation:
In the above program two integer variable "numItemsPointer and numItems" is defined, in which numItemsPointer is a pointer variable and numItems is integer variable, in which we input value from the user end, and an if condition statement is used, that check and calculate the values, which can be described as follows:
- In the if block a condition is defined that variable "numItems" is less then 0, if this condition is true so, inside the block, it will assign a value, that is equal to "NULL", and prints its value.
- If the condition is not true it will go to the else block, in this block, it will first pointer variable holds the variable address, and multiply the value by 10, and prints pointer variable value.
Answer:
A class is like a blueprint of object.
Explanation:
A class defines the kinds of data and the functionality their objects will have.
A class enables you to create your own custom types by grouping together variables of other types, methods and events.
In C#, we can create a class using the class keyword.
Here's a sample program:
using System;
namespace ConsoleApplication
{
public class Test
{
public static void Main()
{
Add a1 = new Add(70, 50);
a1.AddNumbers();
Console.ReadLine();
}
}
class Add
{
private int row;
private int column;
public Add(int r, int c)
{
row = r;
column = c;
}
public void AddNumbers()
{
Console.WriteLine(row+column);
}
}
}
output: 120
Explanation of the program:
I have created a class named Add. Within a class, row and column are two fields and AddNumbers() is a method. We also have constructor to initialize row and column.
In main method, If I need to invoke members of the class, I must create an instance of the class. We can create any number of instances using the single class.IN our program, a1 is the reference variable using which we can invoke members of the class. I invoked function in the class and passed arguments to the constructor while creating an instance.
Those values are assigned to method variables and it operated the addition. Thus the output is 120.