a Show which of the following are valid and which are invalid identifiers: Why?
ID: 3675789 • Letter: A
Question
a Show which of the following are valid and which are invalid identifiers: Why?
run_1
2run
double
Char
double-trouble
two*four
b. What's wrong with the following function call:
(3 dots means I’m not showing all of the program steps)
#include <stdio.h>
double find_scale(double x, int n);
.
.
.
int main(void)
{
double num_1, num_3;
int num_2;
.
.
.
num_3 = Find_scale(num_1, num_2);
.
.
.
return(0);
}
double find_scale(double x, int n)
{
.
.
.
return(0);
}
Explanation / Answer
Please find the answers below :
a)
run_1, and Char
b)
In main function you are calling Find_scale function with F as capital, as the function names are case-sensitive it will gives an error the function Find_scale not defined. In this code the declared function is find_scale with small f.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.