Question: Find errors: a ) Assume: char str [ 5 ] ; scanf ( % s , str ) ; / / User types

Find errors:
a) Assume:
char str[5];
scanf("%s", str ); // User types hello
b) Assume:
int a[3];
printf("$d %d %d
", a[1], a[2], a[3]);
c) double f[3]={1.1,10.01,100.001,1000.0001};
d)
void cube( float number )// function definition
{
return number * number * number;
}
e)
double square( double number )
{
double number;
return number * number;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!