answersLogoWhite

0

float *(*funptr)(int *);

float *fun (int *);

funptr= fun;

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

How will you declare an array of three functions pointer where each function receives two ints and returns a float?

typedef float (*pt_func)(int, int); pt_func arr[3];another way:float (*pt_func[3])(int, int);


How will you declare an array of three function pointers where each function receives two int and returns float?

typedef float (*pt_func)(int, int); pt_func arr[3];another way:float (*pt_func[3])(int, int);


How do you Write a value returning function using c programming that receives two floating point numbers and returns true if the first formal parameter is greater than the second.?

bool isBigger (float a, float b) { return a > b;}


Which of the correct way of declaring the float pointer?

float *pointer;


How do you declare a pointer variable in c?

int* pint; // instantiate a pointer to an int. float* pflt; // instantiate a pointer to a float.


Is void a data type in c?

what is void data type Void is an empty data type normally used as a return type in C/C++, C#, Java functions/methods to declare that no value will be return by the function. The another use of void is to declare the pointer in C/C++ whe It is not sure that what data type will be addressed by the pointer. eg: void *p; Here p can hold the address of int or float or char or long int or double.


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

float test(int, char);


Why you use float pointer instead of integer pointer?

It depends on what type of data you wish to manipulate.


How do you invoke function result () takes two float argument and returns an integer in c plus plus program?

You can do this by creating a forwarddeclaration of the function. You can call the forward drclared function inside the main to use it.int result(float num1, float num2);intmain(void){int value = result(3.14, 2.74);return (0);}intresult(float num1, float num2){int value = 0;// function codes goes here// you can alter the value of variable 'value'return (value);}The returning value of the 'result()' function is assigned to variable 'value' in 'main()'.


Writ a c plus plus program a function intersect() with four float parameter m1b1m2b2.the function returns 1 if the two Line intersect. otherwise should return 0.?

Here's a simple C++ function intersect() that takes four float parameters representing the slopes and y-intercepts of two lines and returns 1 if they intersect, and 0 otherwise: #include <iostream> int intersect(float m1, float b1, float m2, float b2) { // If the slopes are equal, the lines are parallel and do not intersect. return (m1 != m2) ? 1 : 0; } int main() { // Example usage std::cout << intersect(1.0, 2.0, 1.0, 3.0) << std::endl; // Output: 0 std::cout << intersect(1.0, 2.0, -1.0, 3.0) << std::endl; // Output: 1 return 0; } This function checks if the slopes (m1 and m2) of the two lines are equal; if they are, the lines are parallel and do not intersect, returning 0. Otherwise, it returns 1, indicating that the lines intersect.


What is the by default value of globally declaration variable?

int, float: 0 pointer: NULL


How do you declare a function to return long float?

long float myfun();