Something like this.
Code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i, l;
int j ='ö';
FILE *fptr;
/*character constant*/
printf("integer constant 148\t\t- as decimal: %d\tas character: %c\n", 148, 148);
printf("int character constant '\x94'\t- as decimal: %d\tas character: %c\n",j, j);
/*from keyboard*/
printf("Enter '\x94': ");
l = getchar();
printf("Character entered\t\t- as decimal: %d\tas character: %c\n\n",l, l);
/*writing to and then reading from file*/
printf("int character constant '\x94' written to file, then read from same file as: ");
fptr = fopen("file.txt", "w");
fputc(j, fptr);
fclose(fptr);
fptr = fopen("file.txt", "r");
while ((i = getc(fptr)) != EOF)putchar(i);
fclose(fptr);
printf("\n");
return 0;
}