answersLogoWhite

0

int comp(const int a1[], const int a2[], const int size) {

int i;

for(i = 0; i < size; ++i) {

if(a1[i] != a2[i]) {

return 0;

}

}

return 1;

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

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


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

float test(int, char);


Is the greatest integer function a continuous funcion?

No. It has a discontinuity at every integer value.


Which equation matches the graph of the greatest integers function given below?

To identify the equation that matches the graph of the greatest integer function, look for the characteristic step-like pattern of the function, which takes on integer values and jumps at each integer. The greatest integer function is typically denoted as ( f(x) = \lfloor x \rfloor ), where ( \lfloor x \rfloor ) represents the greatest integer less than or equal to ( x ). If the graph shows horizontal segments at each integer value until the next integer, it confirms that it represents this function.


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


What is the greatest integer function of -50.95?

-51


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

To specify the return-type of the function.


What is a function used to convert ASCII to integer?

atoi


The greatest integer function and absolute value function are both examples of functions that can be defined as what?

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.


How can you use the rand5() function to create a rand7() function that generates a random integer between 0 and 7?

To create a rand7() function using the rand5() function, you can call the rand5() function twice and combine the results to generate a random integer between 0 and 7.