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

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License