Answer:
Option A
Explanation:
Because each function has specific amount of space allocated by default on the stack, so it cares about the length of the array being printed by it. By default the space is up to 100 kb but this size can be increased by setting it manually.
Option B is correct answer because scanf takes input from user until first space is hit.
Answer: When you declare a variable, you should also initialize it. Two types of variable initialization exist: explicit and implicit. Variables are explicitly initialized if they are assigned a value in the declaration statement. Implicit initialization occurs when variables are assigned a value during processing.
Explanation:
For example, in JavaScript
var PaintAmount = 50; -declare and initialize
function setup() {
creatCanvas(200, 200);
}
function draw() {
ellipse(PaintAmount, PaintAmount) -use the variable PaintAmount
}
or rather in Java,
package random;
public class something() {
Public static void Main(String []args) {
string name; // this is declaring the variable with the example type
string name = new string; //this initializes the declared variable
}
}
In python:
total = 0
i = 0
while total <= 100:
number = int(input("Enter a number: "))
i += 1
total += number
print("Sum: {}".format(total))
print("Numbers Entered: {}".format(i))