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:
The answer is the program, in the explanation
Explanation:
I am going to write a C program.
int main(){
int grade = -1; /*The grade will be read to this variable*/
/*This loop will keep repeating until a valid grade is inserted*/
while(grade < 0 || grade > 100){
printf("Insert the student's grade: %n");
scanf("%d", &grade);
}
/*The conditional according to the grade value*/
if (grade >= 90){
printf("Your grade is A\n");
}
else if (grade >= 80 && grade < 90){
printf("Your grade is B\n");
}
else if (grade >= 70 && grade < 80){
printf("Your grade is C\n");
}
else if (grade >= 60 && grade < 70){
printf("Your grade is D\n");
}
else{
printf("You got a failling grade\n");
}
return 0;
}
Not sure. if youre online try messing with the filters if there are some, if youre on the app try updating it.
Answer:
They want more money I suppose
Welcome to Brainly!
I am just an Expert user (I was originally gonna be a co-mod, but decided not to take the role) who wants to help! On this website/app, you can ask/answer questions! If you ever need help, this website is the place to go! Just make sure you don't break the guidelines and as Sniper would say, "Be polite"