I had to output a series of numbers withbut the last number will have the , after it. How do I delete that last comma? By the way the printf code is in a loop.Code:printf ("%d,")
This is a discussion on Delete last Character (comma) ? within the C Programming forums, part of the General Programming Boards category; I had to output a series of numbers with Code: printf ("%d,") but the last number will have the , ...
I had to output a series of numbers withbut the last number will have the , after it. How do I delete that last comma? By the way the printf code is in a loop.Code:printf ("%d,")
How about putting the comma into a different printf statement that does not get executed for the last item?
Demonographic rhinology is not the only possible outcome, but why take the chance