Hello,
I am new in C.Please tell me how to pass parameter in Function.
Thanks

#include <stdio.h>

void function1(int a,char c)
{
   printf("This functions parameters were an int %d and a character %c\n",a,c);

}

int main(void)
{
   int x = 2;
   char b = 'q';

   function1(x,b);

   return 0;

}

Can you be more specific about what you want to know

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.