This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main (void) | |
| { | |
| char address = "abc123"; | |
| printf(address); | |
| return 0; | |
| // 0100 0001 - 41 (upper case 'A') | |
| // 0110 0001 - 61 (lower case 'a') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| char my_char = 'a'; | |
| // somewhere we have: address of my_char 0110 0001 <-- 'a' | |
| // ... | |
| // 0111 - 0000 0101 <-- 5 | |
| // 1000 - 0110 0001 <-- 'a' | |
| // 1001 - 1101 0011 <-- unrelated data | |
| // ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unsigned short int total = 50250; | |
| // unsigned short takes up "two bytes" | |
| // 1100 0100 0100 1010 = 50250 | |
| //.. | |
| // 1000 - 1100 0100 | |
| // 1001 - 0100 1010 | |
| //.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main (void) | |
| { | |
| int total = 5; | |
| printf ("The total is: %d; then %d; then %d; then %d.", total, 6, total + 3, printf("1234567")); | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| echo 'Hi, good ol\' world!'; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Interger Variables | |
| $firstIntegerVariable = 26; | |
| $secondIntegerVariable = 13; | |
| $thirdIntegerVariable = $firstIntegerVariable + $secondIntegerVariable; | |
| // String Variable | |
| $firstStringVariable = "This is a sentence with punctuation."; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Logic.php | |
| $number = 11; | |
| if ($number < 10) | |
| { | |
| echo "Less than 10"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width" /> | |
| <title>$title</title> | |
| $styles | |
| </head> | |
| <body> | |
| <h1>$title</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| <!DOCTYPE html> | |
| <html></html> | |
| <head></head> | |
| <body></body> | |
| <p></p> | |
| style="background-color: red"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Learn HTML & CSS - Codecademy | |
| */ | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%; |
OlderNewer