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 ) ;
}
Answer:
Run directory services
Explanation:
LDAP (Lightweight Directory Access Protocol) is an open protocol used to access some information, information that is stored in a network, the information is organized hierarchical structure, we could find some data like names, directories, and telephone numbers.
With other options, we can find DHCP to assign IP addresses and to resolve IP addresses to host names, we have the DNS.
It can be written with
192.168.6.0/23
255.255.0.0 means /16 which is class b subnet mask so as 254 is in the third octet which means /23 so you can write it as /23.
Answer:
#include<stdio.h>
void ConvertFahrenheit(float);
void main()
{
float fahrenheit_temp;
printf("Input the temperature in Fahrenheit: ");
scanf("%f", &fahrenheit_temp);
ConvertFahrenheit(fahrenheit_temp);
}
void ConvertFahrenheit(float fahren) {
float c, k;
c = (fahren - 32)/1.8;
k = (fahren + 459.67)/1.8;
printf("Celsius = %f\n", c);
printf("Kelvin = %f", k);
}
Explanation:
- Inside the main function, take the temperature in Fahrenheit as an input from user and call the ConvertFahrenheit function by passing it the fahrenheit_temp variable as an argument.
- Create the ConvertFahrenheit function for the conversion and convert the fahrenheit value to the Celsius and Kelvin by using their conversion formulas respectively.
- Lastly, display the result in Celsius and Kelvin.