lignin
Junior Member level 2
hello ;
I have a problem with the following code.
I received following error : 12 C:\Dev-Cpp\Untitled1.cpp too few arguments to function `void function(per*, int)'
so what is the problem ?
thanks for your answer.
I have a problem with the following code.
Code:
#include<stdio.h>
#include<string.h>
#include<conio.h>
typedef struct person {
char name[20];
int age ;
}per;
void function(per *pointer, int newAge){// problem is here.
pointer->age = newAge;
}
int main(){
per per1;
function(&per1);
printf("age %d",per1.age);
getch();
}
I received following error : 12 C:\Dev-Cpp\Untitled1.cpp too few arguments to function `void function(per*, int)'
so what is the problem ?
thanks for your answer.