@amd ... Pelles C comes with a truly excellent help file. You may want to spend just a few minutes looking around in it. There's a ton of helpful hints and even a "your first program" tutorial in there, to get you started. Also be sure to look around in the IDE... click on stuff, right click on stuff... you'll find a lot of really helpful stuff that way...
On the main() thing... There are 2 generally preferred forms for the main function...
int main (void)
{
// your code here
return 0;
}
for when you are not using command line arguments, and...
int main (int argc, char *argv[])
{
// your code here
return 0;
}
when you want to read in data from the command line.