Student here,
Should code comments go to the right of the code..like this...
int main(void)
{
int one = 2; /* declares a variable of type int, called one, with a value of 2 */
int two = 3;
int three = one + two; /* adds variables named one and two */
printf("%d",three); /* outputs the sum of one and two */
return 0;
}
or above the relevant line... like this??
int main(void)
{
/* declares a variable of type int, called one, with a value of 2 */
int one = 2;
int two = 3;
/* adds variables named one and two */
int three = one + two;
/* outputs the sum of one and two */
printf("%d",three);
return 0;
}