You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.intmain(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.intmain(void)
{
// Print "Hello, World!" in the terminal window.printf("Hello, world!\n");
}