You need to dereference it with '*', use '{'/'}' vs. '['/']', and then you will be printing the ascii value of 'x' = 121. Here is the code: #include <stdio.h> int main() { char name[4] = {'x', '%', 'Q', 0}; printf("%d\n", *name); }