C arguments

11 Views
Published
C arguments parameters tutorial example explained

#C #arguments #parameters

void birthday(char x[], int y)
{
printf("\nHappy birthday dear %s!", x);
printf("\nYou are %d years old!", y);
}

int main()
{
char name[] = "Bro";
int age = 21;

birthday(name, age);

return 0;
}
Category
Bro Code
Tags
c arguments, arguments c, arguments
Be the first to comment