Hello sir..
I want to know that if there is any difference between Parameter and Argument of a function
....?

A parameter is used when defining/declaring (or prototyping) a function, and an argument is passed (or given) when calling the function. In the example below, x and y are parameters, while a and b are arguments:

double average(int x, int y); /* Function prototyping; x and y are parameters */

int main(void) {

    int a = 10, b = 20;

    printf("%d\n", average(a, b); /* The function is called; a and b are arguments */
}

double average(int x, int y) { /* Function definition; x and y are parameters */

    return (x + y) / 2;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.