Printf
Prints argument(s) according to the format. As formatting will be used strings, as argument(s) will be used special expressions. Ex.: %d for decimals, %c for characters etc.
#include "stdio.h"
int main(void) {
int x = 1;
int y = 2;
int z = x + y;
printf("%d + %d = %d\n", x, y, z);
}
result:
1 + 2 = 3
page revision: 0, last edited: 28 Jan 2015 19:43