answersLogoWhite

0

#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;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Can you write a program without specifying the prototype of any function?

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.


Write a function prototype named test that accepts two parameters an integer and character and returns a float?

float test(int, char);


Write the prototype of a function' divide' that takes two integer values and returns the quotient of double type.?

Your question isn't a question, but here is the answer: double divide (int p, int q);


Is the greatest integer function a continuous funcion?

No. It has a discontinuity at every integer value.


How do you print size of integer?

the size of an integer is determaind by using the function "sizeof(c)",here 'c' is any integer.


What is the greatest integer function of -50.95?

-51


What is greatest integer function of 0.7?

The greatest integer function, often denoted as ⌊x⌋, gives the largest integer less than or equal to x. For 0.7, the greatest integer is 0, since 0 is the largest integer that is less than or equal to 0.7. Thus, ⌊0.7⌋ = 0.


How do you enter integer in python?

In Python, you can enter an integer using the input() function, which captures user input as a string. To convert this string to an integer, you can use the int() function. For example: user_input = input(&quot;Enter an integer: &quot;) integer_value = int(user_input) This will convert the input string to an integer, assuming the user enters a valid integer.


How do declare function pointer having two integer parameters and returning integer pointers?

// declare a function int* function(int, int); or int* (function)(int, int); // declare a pointer to a function int* (*pointer_to_function)(int, int);


How many bits need to represent decimal number 12500?

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).


What is a function used to convert ASCII to integer?

atoi


Why you use 'integer' before function in C language?

To specify the return-type of the function.