opisthofulax
opisthofulax

Reputation: 551

Accent in commented code in a C program

I'm writing a little introduction in a file my_program.c on a MAC OS Sierra 10.21. The point is that I have to give this file to a professor who has Scientific Linux on his PC and, of course if i put a printf with an accent inside, i. e.

% code %
printf("This is an accent àèíóù \n");
% more code %

the program gives some strange issues. But I would like to know what happens if i put the accent inside a comment, i.e.

% code %
/* this is an accent inside a comment àèíóù */
% more code %

Will it have some problems compiling or executing the program?

Upvotes: 1

Views: 159

Answers (1)

Victor Lia Fook
Victor Lia Fook

Reputation: 430

You can put anything inside your comments, no problem. Except for the closing tag( */ ), in case of multiline comments.

EDIT:

Check some rules for c comments

Upvotes: 1

Related Questions