Answer:
The correct answer for the given question is option(a) i.e Local - within that function
.
Explanation:
The variable which is declared inside any function are called as local variable The scope and lifetime of local variable is inside that block or function only.
They cannot access outside the function.
Following are the example of local variable
#include <stdio.h> // header file
void fun(); // function prototype
int main()// main function
{
fun(); //calling function
print("%d",t); // it gives error because t is local variable cannot access in main function
return 0;
}
void fun()
{
int t=9;// local variable
printf("t is local variable which value is:");
printf("%d",t);
}
As we seen that t cannot access outside the function .So correct answer is option(a)
Answer:
It balances a tree when a long path exist in the left subtree of the left of the root.
Explanation:
Rotation is an operation which is performed on the binary tree which changes the structure of the binary tree but it does not interfere with the order of elements.
A single right rotation strategy is basically for re balancing the tree.When there is along path which exists in the left subtree of the left of the root.
Answer:
its not letting me Write out the code so here are screenshots
Explanation:
Answer:
Cause they are trying to be annoying
Explanation:
Something is wrong with them :)