I tried to add comma between the numbers, I already checked other question and I did it, but it still fail for me I don't know why. Here's my simple code :
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <locale.h>
int ticketPrint();
int main(){
ticketPrint( 125000 );
}
int ticketPrint( int ticketPrices ){
setlocale(LC_NUMERIC, "");
printf("\xb3 Total \xb3 %'d \xb3\n", ticketPrices);
return 0;
}
I expected : 125,000
But the output is 'd, any idea? or please tell me where is my fault, Thankyou