Technical Discussion :: C
Home > Technical Interview Q&A > C > Discussion
11 / 123
Other than in a for statement, when is the comma operator used?
Answer:
To declare more than one same type of varibale.
eg:
int i,j,k;
To print variables
eg: int i=2;
printf("%d",i);
Asked In ::
comma
To declare more than one same type of varibale.
eg:
int i,j,k;
To print variables
eg: int i=2;
printf("%d",i);
eg:
int i,j,k;
To print variables
eg: int i=2;
printf("%d",i);