Answer:
Option A(True) is the correct answer for the above question.
Explanation:
- An array is used for the collection variables which is of the same type and uses memory in continuous Passion for the storage.
- When any user wants to use the array then he needs to declare the size and type of the array because array holds the same type of data.
- For example, int a[5] is an array of integer variable whose name is 'a' and the size is 5 in c language.
- Anyone can use the array with the help of the index value of the array. The starting index value is 0 and the ending index value is (size-1) for any array.
- The user can use it by the help of loop, in which the loop variable refers to the index of the array and it starts from 0 and ends in the (size of the array-1).
- It is because the loop executes the same line multiple times.
- The above statement also wants to state, which is defined as above. Hence the above statement is true which is referred by option A. Hence option A is the correct answer.
Answer:
B
Explanation:
because the other answers dont make sense
Boolean search would be the answer
Answer:
Explanation:
#include <stdio.h>
#include <string.h>
typedef struct ProductInfo_struct {
char itemName[30];
int itemQty;
} ProductInfo;
ProductInfo IncreaseItemQty (ProductInfo productToStock, int increaseValue) {
productToStock.itemQty = productToStock.itemQty + increaseValue;
return productToStock;
}
int main(void) {
ProductInfo mugInfo;
int addStock;
addStock = 10;
scanf("%s", mugInfo.itemName);
scanf("%d", &mugInfo.itemQty);
**** /* Your solution goes here */ ****
printf("Name: %s, stock: %d\n", mugInfo.itemName, mugInfo.itemQty);
return 0;
}