xFactorSchool.com(Beta)
How to Do Examples
Python Examples
HTML Examples
Code Examples
C Code Examples
C++ Code Examples
C# Code Examples
Java Code Examples
Python Code Examples
HTML Code Examples
CSS Code Examples
JavaScript Code Examples
Online Editor
C Code Editor
C++ Code Editor
C# Code Editor
Java Code Editor
Python Code Editor
HTML Code Editor
CSS Code Editor
JavaScript Code Editor
Practice how to format different data types in C
C Online Editor
Execute Code
More C Sample Codes
#include <stdio.h> int main() { char charVariable = 'A'; // Character data printf("%c is a character data\n", charVariable); // %c formatter for character data const char* stringVariable = "Hello C"; // String data printf("%s is a string data\n", stringVariable); // %s formatter for string data int integerVariable = 10; // Integer data printf("%d is an integer data\n", integerVariable); // %d formatter for integer data float floatVariable = 3.14; // Float data printf("%f is a float data\n", floatVariable); // %f formatter for float data double doubleVariable = 2.71828; // Double data printf("%lf is a double data\n", doubleVariable); // %lf formatter for double data return 0; }