Answer:
1010 0111 1101 1111
Explanation:
A = 10 in decimal = 1010 in binary
7 = 7 in decimal = 0111 in binary
D = 13 in decimal = 1101 in binary
F = 15 in decimal = 1111 in binary
Therefore 0xA7DF = 1010 0111 1101 1111 in binary
Answer:
int* strikeCounter ;
int someVal;
scanf("%d", &someVal);
strikeCounter =&someVal;
*strikeCounter =someVal*4;
Explanation:
Here we took one int variable and read that value from user. we assigned that int variable address to pointer variable "strikeCounter " and we are pointing the value of strikecounter as 4 times of that integer variable value
Because of the reflection on the window or mirror.
Answer:
Yes
Explanation:
Shared social illustrations have always shown that any problem of any kind can be sorted by communication.
Eg : Whenever societies face any problem - eg recession, the competent people related to that area of problem (representing different interests of various groups also) sit & discuss (ie communicate in detail) about it.
These communications have seen to be solution to all problems world has faced.
Answer:
Static scoping: x is 5
Dynamic scoping : x is 10.
Explanation:
Static scoping :
In static scoping the variable of a function take the value within the function.
If there is no values exist within the function then take the global value of the variable.
var x // No value is assigned to x so it check global value of x
function sub1() {
document.write(“x = “ + x + “”); // So it print x = 5
}
function sub2() {
var x;
x = 10;
sub1();
}
x = 5; // It is the global value of x
sub2();
Static scoping: x is 5
Dynamic scoping :
In Dynamic scoping the variable of a function take the value all the calling function ends.
If the global value is the last assigned value of a variable then it take that value.
If there exist some other function after global variable value if that function contain the variable with some assigned value variable take that value.
var x
function sub1() {
document.write(“x = “ + x + “”);
}
x = 5; // At this point x value is 5 and check there exist a function
sub2(); // So now call this function
function sub2() {
var x;
x = 10; // The value of x = 5 is replaced with x = 10
sub1();
}
Dynamic scoping : x is 10.