What does double semicolon mean in c?

For instance:

void thisIsAnExample(Hello* bye, char* name, int num, in* arr, int* sum){
                 GoodBye x;;
                   x.funName = name;
                    .
                    .
                    .
+4
source share
4 answers

This means nothing. This is just an extra semicolon. You can delete it (leaving a semicolon) without any consequences for your program.

+9
source

It has the meaning of a statement followed by an empty statement.

In C, each statememnt ends with ;. Thus, operator c ;followed by one is an instruction followed by an empty operator.

+8
source

" " c. . .

+3

Most likely a typo. Adds a null statement to your program.

0
source

Source: https://habr.com/ru/post/1529356/


All Articles