Jump to: navigation, search
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)

Page title matches

  • {{KR2_Header|1.01|8| Run the "hello, world" program on your system. Experiment with leav Microsoft C, up to version 5.1 ...
    2 KB (273 words) - 20:42, 9 January 2022
  • ===Chapter 1 - Introduction to functions=== int func1(void) { func3(); return 1; } ...
    8 KB (1,213 words) - 09:52, 21 April 2015
  • ===Chapter 1 - A Tutorial Introduction=== <td> 1 </td> <td> 8 </td> ...
    8 KB (1,237 words) - 20:47, 3 July 2011
  • {{KR2_Header|1.02|8| Experiment to find out what happens when <code>printf</code> 's arg ...
    3 KB (427 words) - 20:45, 9 January 2022
  • {{KR2_Header|1.03|13| Modify the temperature conversion program to print a heading above Exercise 1-3. Modify the temperature conversion program to print a heading ...
    1 KB (168 words) - 20:46, 9 January 2022
  • {{KR2_Header|1.04|13| Write a program to print the corresponding Celsius to Fahrenheit t ...
    519 bytes (62 words) - 20:47, 9 January 2022
  • {{KR2_Header|1.05|14| Modify the temperature conversion program to print the table in re ...For statement example, and "Based on that example, I think the solution to 1.5: ...
    2 KB (216 words) - 20:49, 9 January 2022
  • ...getchar()</code> <code>!<nowiki>=</nowiki></code> <code>EOF</code> is 0 or 1.|__TOC__}} * the program prints 0. Otherwise, it prints 1. ...
    798 bytes (115 words) - 20:50, 9 January 2022
  • {{KR2_Header|1.07|17| Write a program to print the value of <code>EOF</code> .|__TOC__}} ...
    271 bytes (41 words) - 20:51, 9 January 2022
  • {{KR2_Header|1.08|20| Write a program to count blanks, tabs, and newlines.|__TOC__}} done = 1; ...
    2 KB (295 words) - 20:53, 9 January 2022
  • {{KR2_Header|1.09|20| Write a program to copy its input to its output, replacing each st inspace = 1; ...
    10 KB (1,279 words) - 16:42, 11 April 2022
  • {{KR2_Header|1.10|20| Write a program to copy its input to its output, replacing each ta ...solution was actually [[K&R2 solutions:Ancillary:Category numbers|Category 1]]. He was quite right. Better still, he was kind enough to submit a [[K&R2 ...
    3 KB (467 words) - 03:19, 7 January 2024
  • {{KR2_Header|1.11|21| How would you test the word count program? What kinds of input are 1. input file contains 1 enormous word without any newlines ...
    3 KB (482 words) - 21:54, 9 January 2022
  • {{KR2_Header|1.12|21| Write a program that prints its input one word per line.|__TOC__}} #define IN 1 ...
    8 KB (1,066 words) - 03:04, 8 January 2024
  • {{KR2_Header|1.13|24| Write a program to print a histogram of the lengths of words in it ...is not used, index 1 is for the word of length 2, index MAX_WORD_LENGTH + 1 is for the word of length bigger than MAX_WORD_LENGTH ...
    74 KB (5,315 words) - 01:19, 6 April 2024
  • {{KR2_Header|1.14|24| Write a program to print a histogram of the frequencies of differe for(i = 1; i <= max_freq; i++) // print the horizontal line ...
    82 KB (2,378 words) - 17:52, 5 April 2024
  • {{KR2_Header|1.15|27| Rewrite the temperature conversion program of Section 1.2 to use a function for conversion.|__TOC__}} * Rewrite the temperature conversion program of Section 1.2 to use a function for conversion. ...
    3 KB (283 words) - 18:00, 5 April 2024
  • {{KR2_Header|1.16|30| Revise the main routine of the longest-line program so it will cor if (i < lim - 1) ...
    28 KB (3,989 words) - 05:20, 24 January 2024
  • {{KR2_Header|1.17|31| Write a program to print all input lines that are longer than 80 c for (i = 0; i < lim - 1 && (c = getchar()) != EOF && c != '\n'; ++i) ...
    12 KB (1,664 words) - 05:43, 24 January 2024
  • {{KR2_Header|1.18|31| Write a program to remove all trailing blanks and tabs from each l for (i = 0; i < lim - 1 && (c = getchar()) != EOF && c != '\n'; ++i) ...
    22 KB (3,076 words) - 06:14, 24 January 2024

Page text matches

  • * approach of returning -1 instead. This is more work for the caller, of if (year < 1752 || month < 1 || month > 12 || day < 1) ...
    9 KB (1,196 words) - 09:15, 14 December 2021
  • ...<code>&<nowiki>=</nowiki></code> <code>(x-1)</code> deletes the rightmost 1-bit in <code>x</code> . Explain why. Use this observation to write a fast /* In a two's complement number system, x &= (x-1) deletes the rightmost 1-bit in x. Explain why. ...
    8 KB (1,178 words) - 05:17, 22 February 2024
  • Suggested solution to Exercise 3-1 the element -1, to time the functions' worst case ...
    12 KB (1,706 words) - 04:20, 23 February 2024
  • {{KR2_Header|1.10|20| Write a program to copy its input to its output, replacing each ta ...solution was actually [[K&R2 solutions:Ancillary:Category numbers|Category 1]]. He was quite right. Better still, he was kind enough to submit a [[K&R2 ...
    3 KB (467 words) - 03:19, 7 January 2024
  • sign = (c == '-') ? -1 : 1; ungetch((sign == -1) ? '-' : '+'); ...
    9 KB (1,342 words) - 09:14, 9 December 2021
  • ...getchar()</code> <code>!<nowiki>=</nowiki></code> <code>EOF</code> is 0 or 1.|__TOC__}} * the program prints 0. Otherwise, it prints 1. ...
    798 bytes (115 words) - 20:50, 9 January 2022
  • {{KR2_Header|1.11|21| How would you test the word count program? What kinds of input are 1. input file contains 1 enormous word without any newlines ...
    3 KB (482 words) - 21:54, 9 January 2022
  • if(argc == 1) filecopy(0, 1); ...
    5 KB (694 words) - 23:11, 2 January 2022
  • * [[C language:Control keywords]]: skeletal (1 article shared by 2 nodes) * [[C language:Inbuilt types]]: skeletal (1 article) ...
    883 bytes (134 words) - 17:51, 2 March 2016
  • return 1; return 1; /* name not found */ ...
    5 KB (717 words) - 02:15, 28 December 2021
  • ...<code>n</code> bits that begin at position <code>p</code> inverted (i.e., 1 changed into 0 and vice versa), leaving the others unchanged.|__TOC__}} inverted (i.e., 1 change to 0 and vice versa), leaving the others unchanged */ ...
    7 KB (1,006 words) - 06:59, 17 February 2024
  • ===Chapter 1 - A Tutorial Introduction=== <td> 1 </td> <td> 8 </td> ...
    8 KB (1,237 words) - 20:47, 3 July 2011
  • {{KR2_Header|1.12|21| Write a program that prints its input one word per line.|__TOC__}} #define IN 1 ...
    8 KB (1,066 words) - 03:04, 8 January 2024
  • func = 1; ...n by Bryan Williams ([[K&R2 solutions:Ancillary:Category numbers|category 1]]) == ...
    7 KB (871 words) - 14:22, 28 December 2021
  • {{KR2_Header|1.21|34| Write a program <code>entab</code> that replaces strings of blanks KnR 1-21 ...
    18 KB (2,073 words) - 04:24, 23 November 2023
  • for (i = 1; i < month; i++) for (i = 1; yearday > daytab[leap][i]; i++) ...
    13 KB (1,643 words) - 11:22, 23 January 2022
  • {{KR2_Header|1.19|31|Write a function <code>reverse(s)</code> that reverses the character for (i = 0; i < lim - 1 && (c = getchar()) != EOF && c != '\n'; ++i) ...
    17 KB (1,630 words) - 11:48, 27 January 2024
  • int numeric = 0; /* 1 if numeric sort */ int reverse = 0; /* 1 if sorting in reverse order */ ...
    12 KB (1,586 words) - 00:32, 24 December 2021
  • #define TRUE 1 for (i = 0; i < lim - 1 && (c = getchar()) != EOF && c != '\n'; i++) ...
    13 KB (1,729 words) - 23:13, 23 December 2021
  • ...tion of the rightmost occurrence of <code>t</code> in <code>s</code> , or -1 if there is none.|__TOC__}} ** of the rightmost occurrence of t in s, or -1 if there is none. ...
    12 KB (1,872 words) - 00:29, 10 January 2022
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)
Views
Personal tools