Answer:
#include <stdio.h>
#include <string.h>
void main( )
{
array flowerProp[2];
FILE *fp; // file pointer
char flower[255]; // creating a char array to store data
fp = fopen("flowers.dat","r");
if (fp == NULL){
printf("File flower.dat does not exist");
return;
}
// assuming the growing condition is next line to the flower name.
while(fscanf(fp, "%s", flower)!=EOF){
flowerProp.push(flower);
if (flowerProp.length == 2){
printf("%s: %s\n ", flowerProp[0], flowerProp[1]);
memset(flowerProp, 0,0);
}
}
fclose (fp );
}
Explanation:
The algorithm creates a pointer to the memory location to the file starting position, the character size is used to get a string from the file line by line. Then it opens and checks if the file exists.
If the file exists, the while gets the name and growth condition of the flower, saves it to an array, prints the name and condition, and clears the array for the next flower type in the loop.
Answer:
A. true
Explanation:
Step 1: int fun(int); This is prototype of function fun().It tells the compiler that the function fun() accept one integer parameter and returns an integer value.. Step 2: int i=3; The variable i
Answer:
The answer is "Increased flexibility".
Explanation:
In the given question some information is missing that is the option of the question which can be described as follows:
A. Enhance scalability and efficiency
B. Enhance data security
C. Reducing data duplication
D. Increased flexibility
Flexibility is being used as an object for different types of applications. It is an engineering system which is that provides an easy way for all the scheme to respond to insecurity so, that its value is maintained or increased, It is also known as its key component, and certain option was incorrect, which can be described as follows:
- In option A, It is wrong because it is used in business data.
- In option B, It is wrong because it provides security.
- In option C, It removes duplicate data that's why it is wrong.
I believe the answer is false.
I Hope this helps! :)
If you don't understand plz message me
If you do plz brainlest
Thank you!