Answer:
FALSE
Explanation:
The exit function is used to terminate or halt the process.
Syntax-
void exit(int status)
Exit function (exit()) can be used in any function not only main() and it will terminate your whole process.
<u></u>
<u>Example-</u> C Program
#include<stdio.h>
#include <stdlib.h>
// function declaration
float exitexample ( float x );
// Driver program
int main( )
{
float a, b ;
printf ( "\nEnter some number for finding square \n");
scanf ( "%f", &a ) ;
// function call
b = exitexample ( a ) ;
printf ( "\nSquare of the given number %f is %f",a,b );
/*This will not printed as exit function is in exitexample() function*/
}
float exitexample ( float x ) // function definition
{
exit(0); //exit function
float p ;
p = x * x ;
return ( p ) ;
}
My name is Trisha Davis, I am a first year medical student and i love to read and write books. I hate lies and i love anyone who is honest.
<h3>What is self introduction?</h3>
My name is Trisha Davis, I am a first year medical student and i love to read and write books. I hate lies and i love anyone who is honest.
My goal in life is to be a medical doctor and also an entrepreneur. I love to help others and put smile on people's face. What i want from life is good health, favor and avenue to showcase my gifts to the world.
Learn more about self introduction from
brainly.com/question/26685169
#SPJ1
Monitor, keyboard, CPU, mouse, and I believe the USB drive , DVD drive and hardware system
def dx(fn, x, delta=0.001):
return (fn(x+delta) - fn(x))/delta
def solve(fn, value, x=0.5, maxtries=1000, maxerr=0.00001):
for tries in xrange(maxtries):
err = fn(x) - value
if abs(err) < maxerr:
return x
slope = dx(fn, x)
x -= err/slope
raise ValueError('no solution found')