The most obvious difference between a cell phone and PC is the size. Cell phones are significantly smaller than PCs, and are able to fit in the palm of one's hand. ... Cell phones have less command functions than a PC's keyboard and considerably less storage space. Some cell phones may be used as a GPS device
Answer:
#include <iostream>
using namespace std;
void fragment(int arr[], int n){
for (int i = 0; i < n; i++){
for (int x = 0; x < n; x++){
if (x != i && arr[i] + arr[x] == 0){
cout<< arr[i] << " , " << arr[x];
}
}
}
}
int main(){
int n = 7;
int myArr = {1, 2, -1, -2, 0, 0, 3};
fragment(myArr, n);
}
Explanation:
The C++ source code defines an array called "myArr" in the main program and its array size n. The void function "fragment" prints out the pairs of the array whose sum equates to zero.
Answer:
true
Explanation:
The operator '!' used in the question is called NOT operator which invert the value of Boolean.
if the value is TRUE, output will be FALSE.
if the value is FALSE, output will be TRUE.
The operator '==' is used for comparison, if both values are equal then it gives TRUE otherwise FALSE.
The value of x is -1.
so, (-1 == 0) which is FALSE. -1 and zero are not equal.
then, !(FALSE) which gives TRUE output.
Therefore, the answer is true.