Reference+
Name
, (comma)
Description
Separates parameters in function calls and elements during assignment.
Examples
// Comma used to separate a list of variable declarations int a=20, b=30, c=80; // Comma used to separate a list of values assigned to an array int[] d = { 20, 60, 80 }; // Comma used to separate a list of parameters passed to a function line(a, b, c, b); line(d[0], d[1], d[2], d[1]);
Syntax
value1, ..., valueN
Parameters
value1, ..., valueN
any int, float, byte, boolean, color, char, String
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.