#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)'