how to take input in c separated by comma code example Example: how to take comma separated integer input in c scanf("%d,",&arr[i]);