-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
This overly commented snippet of code needs more comments according to style50.
/******************************
*
* hello.c
*
* This script prints "Hello, world! in the terminal window.
*
* Created by: (UvA Student)
*
******************************/
// Including needed header file
#include <stdio.h>
// The main function, which will be started automatically.
int main(void)
{
// Print "Hello, World!" in the terminal window.
printf("Hello, world!\n");
}
~/workspace/ $ style50 hello.c
Looks good!
But consider adding more comments!
Apparently removing the header comment fixes the issue?
// Including needed header file
#include <stdio.h>
// The main function, which will be started automatically.
int main(void)
{
// Print "Hello, World!" in the terminal window.
printf("Hello, world!\n");
}
~/workspace/ $ style50 hello.c
Looks good!
adhiksubodh
Metadata
Metadata
Assignees
Labels
No labels