Example: biology

This is CS50

This is CS50#include < >int main(void){ printf("hello, world\n");} functions arguments, return values conditionals Boolean expressions loops variables ..correctnessdesignstyle#include < >int main(void){ printf("hello, world\n");}01111111 01000101 01001100 01000110 00000010 00000001 00000001 0000000000000000 00000000 00000000 00000000 00000000 00000000 00000000 0000000000000010 00000000 00111110 00000000 00000001 00000000 00000000 0000000010110000 00000101 01000000 00000000 00000000 00000000 00000000 0000000001000000 00000000 00000000 00000000 00000000 00000000 00000000 0000000011010000 00010011 00000000 00000000 00000000 00000000 00000000 0000000000000000 00000000 00000000 00000000 01000000 00000000 00111000 0000000000001001 00000000 01000000 00000000 00100100

01111111 01000101 01001100 01000110 00000010 00000001 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of This is CS50

1 This is CS50#include < >int main(void){ printf("hello, world\n");} functions arguments, return values conditionals Boolean expressions loops variables ..correctnessdesignstyle#include < >int main(void){ printf("hello, world\n");}01111111 01000101 01001100 01000110 00000010 00000001 00000001 0000000000000000 00000000 00000000 00000000 00000000 00000000 00000000 0000000000000010 00000000 00111110 00000000 00000001 00000000 00000000 0000000010110000 00000101 01000000 00000000 00000000 00000000 00000000 0000000001000000 00000000 00000000 00000000 00000000 00000000 00000000 0000000011010000 00010011 00000000 00000000 00000000 00000000 00000000 0000000000000000 00000000 00000000 00000000 01000000 00000000 00111000 0000000000001001 00000000 01000000 00000000 00100100

2 00000000 00100001 0000000000000110 00000000 00000000 00000000 00000101 00000000 00000000 0000000001000000 00000000 00000000 00000000 00000000 00000000 00000000 0000000001000000 00000000 01000000 00000000 00000000 00000000 00000000 0000000001000000 00000000 01000000 00000000 00000000 00000000 00000000 0000000011111000 00000001 00000000 00000000 00000000 00000000 00000000 0000000011111000 00000001 00000000 00000000 00000000 00000000 00000000 0000000000001000 00000000 00000000 00000000 00000000 00000000 00000000 0000000000000011 00000000 00000000 00000000 00000100 00000000 00000000 0000000000111000 00000010 00000000 00000000 00000000 00000000 00000000 outputsource code source code machine codesource code machine codecompilermake , argumentsprintf("hello, world");printf("hello, world");printf("hello, world");printf("hello, world");printf("hello, world");printf("hello, world");functionsfunctionsarguments functionsarguments side effects return values, variablesstring answer = get_string( );printf("hello, %s", answer).

3 String answer = get_string("What's your name? ");printf("hello, %s", answer);string answer = get_string("What's your name? ");printf("hello, %s", answer);string answer = get_string("What's your name? ");printf("hello, %s", answer);string answer = get_string("What's your name? ");printf("hello, %s", answer);functionsfunctionsarguments functionsarguments return value string answer = get_string("What's your name?\n");printf("hello, %s", answer);printf("hello, %s", answer);printf("hello, %s", answer);printf("hello, %s", answer);mainint main(void){}int main(void){}header files#include < >int main(void){ printf("hello, world\n");}#include < >int main(void){ printf("hello, world\n");} codes%c%f%i%li%s%c char%f float, double%i int%li long%s stringoperators+-*/%+ addition- subtraction* multiplication/ division% remaindervariables, syntactic sugarint counter = 0;int counter = 0;int counter = 0;int counter = 0;counter = counter + 1.

4 Counter = counter + 1;counter = counter + 1;counter += 1;counter++;conditionsif (x < y){ printf("x is less than y\n");}if (x < y){ printf("x is less than y\n");}if (x < y){ printf("x is less than y\n");}if (x < y){ printf("x is less than y\n");}else{ printf("x is not less than y\n");}if (x < y){ printf("x is less than y\n");}else{ printf("x is not less than y\n");}if (x < y){ printf("x is less than y\n");}else{ printf("x is not less than y\n");}if (x < y){ printf("x is less than y\n");}else if (x > y){ printf("x is greater than y\n");}else if (x == y){ printf("x is equal to y\n");}if (x < y){ printf("x is less than y\n");}else if (x > y){ printf("x is greater than y\n");}else if (x == y){ printf("x is equal to y\n");}if (x < y){ printf("x is less than y\n");}else if (x > y){ printf("x is greater than y\n");}else if (x == y){ printf("x is equal to y\n");}if (x < y){ printf("x is less than y\n");}else if (x > y){ printf("x is greater than y\n");}else{ printf("x is equal to y\n").}

5 }loopswhile (true){ printf("meow\n");}while (true){}while (true){ printf("meow\n");}int counter = 0;while (counter < 3){}int counter = 0;while (counter < 3){ printf("meow\n");}int counter = 0;while (counter < 3){ printf("meow\n"); counter = counter + 1;}int i = 0;while (i < 3){ printf("meow\n"); i = i + 1;}int i = 0;while (i < 3){ printf("meow\n"); i += 1;}int i = 0;while (i < 3){ printf("meow\n"); i++;}int i = 0;while (i < 3){ printf("meow\n"); i++;}int i = 0;while (i < 3){ printf("meow\n"); i++;}int i = 0;while (i < 3){ printf("meow\n"); i++;}int i = 0;while (i < 3){ printf("meow\n"); i++;}int i = 0;while (i < 3){ printf("meow\n"); i++;}int i = 0;while (i < 3){ printf("meow\n"); i++;}int i = 0;while (i < 3){ printf("meow\n"); i++;}int i = 1;while (i <= 3){ printf("meow\n"); i++;}int i = 3;while (i > 0){ printf("meow\n"); i--;}for (int i = 0; i < 3; i++){}for (int i = 0; i < 3; i++){ printf("meow\n");}for (int i = 0; i < 3; i++){ printf("meow\n");}for (int i = 0; i < 3.)

6 I++){ printf("meow\n");}for (int i = 0; i < 3; i++){ printf("meow\n");}for (int i = 0; i < 3; i++){ printf("meow\n");}for (int i = 0; i < 3; i++){ printf("meow\n");}for (int i = 0; i < 3; i++){ printf("meow\n");}floating-point imprecisioninteger overflow00000001001000110100010101100111 100010001 January 200019991999190019 January 2038214748364701111111111111111111111111 1111110111111111111111111111111111111111 011111111111111111111111111111101 011111111111111111111111111111001 0111111111111111111111111111100001111111 1111111111111111111100000111111111111111 1111111111100000011111111111111111111111 1100000001111111111111111111111110000000 0111111111111111111111110000000001111111 1111111111111110000000000111111111111111 1111110000000000011111111111111111111000 0000000001111111111111111111000000000000 0111111111111111111000000000000001111111 1111111111000000000000000111111111111111 1000000000000000011111111111111100000000 0000000001111111111111100000000000000000 0111111111111100000000000000000001111111 1111100000000000000000000111111111110000 0000000000000000011111111110000000000000 0000000001111111110000000000000000000000 0111111110000000000000000000000001111111 0000000000000000000000000111111000000000 0000000000000000011111000000000000000000 0000000001111000000000000000000000000000 0111000000000000000000000000000001100000 0000000000000000000000000100000000000000 0000000000000000100000000000000000000000 00000000-214748364813 December 1901 This is CS50


Related search queries