#include <stdio.h>
int findcube(int); // prototype
int main()
{
int a,b;
printf("Enter a number: ");
scanf("%d",&a);
b=findcube(a);
printf("The cube of %d is %d\n",a,b);
}
int findcube(int x)
{
return x*x*x;
}
Your question isn't a question, but here is the answer: double divide (int p, int q);
// declare a function int* function(int, int); or int* (function)(int, int); // declare a pointer to a function int* (*pointer_to_function)(int, int);
atoi
The INT function is to convert something into an integer. An integer is a number that goes out two decimal places.
No, 'int' is short for 'integer' (or 'integral' etc).
You can write a program without specifying its prototype when the function returns an integer.If the prototype is not mentioned the compiler thinks that the return type of the function used is integer.When making program which return integer you can ignore writing the protoype.
float test(int, char);
Your question isn't a question, but here is the answer: double divide (int p, int q);
No. It has a discontinuity at every integer value.
the size of an integer is determaind by using the function "sizeof(c)",here 'c' is any integer.
-51
If you want an unsigned integer, you can calculate this as log2(12500), rounded up. You can calculate the log2 function (logarithm to the base 2), in this case, by dividing ln(12500) / ln(2).
// declare a function int* function(int, int); or int* (function)(int, int); // declare a pointer to a function int* (*pointer_to_function)(int, int);
To specify the return-type of the function.
atoi
Both the Greatest Integer Function and the Absolute Value Function are considered Piece-Wise Defined Functions. This implies that the function was put together using parts from other functions.
You cannot calculate the angle using tangent: you need to use the inverse function: arctangent. The answer will be an angle, x, in the principal range (-90, 90) degrees. But it could be any (x + 180*k) for any integer k.