I am trying to written code that does not return any value but pass the integer value
I have created the function that pass the two argument and perform the addition
warning: conflicting types for 'addition'
void addition (int a, int b)
^~~~~~~~
note: previous implicit declaration of 'addition' was here
addition (2, 5);
^~~~~~~~
c = 7
I don't understand what type of warning is this and why it does generates ?
I have created the function that pass the two argument and perform the addition
Code:
#include<stdio.h>
int main(void)
{
addition (2, 5);
return 0;
}
void addition (int a, int b)
{
int c = a + b ;
printf(" c = %d ", c);
void addition (int a, int b)
^~~~~~~~
note: previous implicit declaration of 'addition' was here
addition (2, 5);
^~~~~~~~
c = 7
I don't understand what type of warning is this and why it does generates ?