Explain the Comma Operator- Computer Programming?
The comma has two utilization and the most common use is as a parameter separator for data types and function parameter lists. Here is an instance:
main()
{
Char String1[20], String2[]="Outback Pub"; /* data types */
strncpy(String1, string2, 7);
}
The other utilize is as a series operator which can be seen in use with the for keyword an instance of the syntax is shown below.
for(i=0;i{
for(j=0;j<=n;j++)
{
sum=sum+i;
}
}