srdusr
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-06-26 16:09:53 +0200
committersrdusr <[email protected]>2023-06-26 16:09:53 +0200
commit63523b2d00c706b42202bc9611bdd190df1a3800 (patch)
treee041cfdc08827e87025ce79f7dfc2a0e1e105e10
parent818ca0f133ad1e1c7030686d25d647001380edd8 (diff)
downloadnotes-63523b2d00c706b42202bc9611bdd190df1a3800.tar.gz
notes-63523b2d00c706b42202bc9611bdd190df1a3800.zip
Add Input/Output
-rw-r--r--languages/c.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/languages/c.md b/languages/c.md
index 6b5ae6d..58a309e 100644
--- a/languages/c.md
+++ b/languages/c.md
@@ -175,4 +175,10 @@ int *pointerName = &variableName;
// Accessing value through pointer
int value = *pointerName;`
```
+- - -
+##### Input/Output:
+- printf("Text"); // Prints text on the console
+- scanf("%d", &<variable>); // Reads input from the user
+
+- - -