Kamis, 27 Februari 2014

What does %d



up vote-5down votefavorite
1
I'm reading a C program, and I have a question that I think may be related to type casting. Basically, the program will follow. I've commented in a few questions that pasted over from my clipboard. Don't worry about those so much as the question that immediately follows the code block.
/* I only need the out in in/out, right?  Or do I need in and out? */
#include<stdio.h>

/* can someone explain the second argument?  A char is only supposed to be one
character so howcome it has square brackets after it, which indicate an array
to me?  Also, what's with the asterisk? */