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) - 01:42, 10 January 2022
  • ===Chapter 1 - Introduction to functions=== int func1(void) { func3(); return 1; } ...
    8 KB (1,213 words) - 14:52, 21 April 2015
  • ===Chapter 1 - A Tutorial Introduction=== <td> 1 </td> <td> 8 </td> ...
    8 KB (1,237 words) - 01:47, 4 July 2011
  • {{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) - 22:52, 5 April 2024
  • ..."Signed char[%d to %d]\n", ~((unsigned char)~0 >> 1), (unsigned char)~0 >> 1); ...gned short[%d to %d]\n", ~((unsigned short)~0 >> 1), (unsigned short)~0 >> 1); ...
    33 KB (4,185 words) - 04:33, 10 January 2022
  • {{KR2_Header|1.04|13| Write a program to print the corresponding Celsius to Fahrenheit t ...
    519 bytes (62 words) - 01:47, 10 January 2022
  • {{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) - 23:00, 5 April 2024
  • Suggested solution to Exercise 3-1 the element -1, to time the functions' worst case ...
    12 KB (1,706 words) - 09:20, 23 February 2024
  • {{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) - 01:49, 10 January 2022
  • {{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) - 10:20, 24 January 2024
  • ...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) - 05:29, 10 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) - 01:50, 10 January 2022
  • {{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) - 10:43, 24 January 2024
  • sign = (c == '-') ? -1 : 1; ungetch((sign == -1) ? '-' : '+'); ...
    9 KB (1,342 words) - 14:14, 9 December 2021
  • {{KR2_Header|1.07|17| Write a program to print the value of <code>EOF</code> .|__TOC__}} ...
    271 bytes (41 words) - 01:51, 10 January 2022
  • {{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) ...
    24 KB (3,357 words) - 12:18, 11 September 2024
  • /* K&R 6-1: "Our version of getword() does not properly handle This is intended to be a solution to K&R 6-1 in "category 0" as ...
    21 KB (2,690 words) - 19:03, 26 December 2021
  • {{KR2_Header|1.08|20| Write a program to count blanks, tabs, and newlines.|__TOC__}} done = 1; ...
    2 KB (295 words) - 01:53, 10 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) - 16:48, 27 January 2024
  • func = 1; ...n by Bryan Williams ([[K&R2 solutions:Ancillary:Category numbers|category 1]]) == ...
    7 KB (871 words) - 19:22, 28 December 2021

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) - 14:15, 14 December 2021
  • Suggested solution to Exercise 3-1 the element -1, to time the functions' worst case ...
    12 KB (1,706 words) - 09:20, 23 February 2024
  • ...<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. ...
    10 KB (1,502 words) - 16:01, 20 September 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) - 08:19, 7 January 2024
  • sign = (c == '-') ? -1 : 1; ungetch((sign == -1) ? '-' : '+'); ...
    9 KB (1,342 words) - 14: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) - 01:50, 10 January 2022
  • if(argc == 1) filecopy(0, 1); ...
    5 KB (694 words) - 04:11, 3 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) - 02:54, 10 January 2022
  • return 1; return 1; /* name not found */ ...
    5 KB (717 words) - 07:15, 28 December 2021
  • * [[C language:Control keywords]]: skeletal (1 article shared by 2 nodes) * [[C language:Inbuilt types]]: skeletal (1 article) ...
    883 bytes (134 words) - 22:51, 2 March 2016
  • for (i = 1; i < month; i++) for (i = 1; yearday > daytab[leap][i]; i++) ...
    13 KB (1,643 words) - 16:22, 23 January 2022
  • ...<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 */ ...
    8 KB (1,143 words) - 16:35, 19 September 2024
  • {{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) - 08:04, 8 January 2024
  • {{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) - 16:48, 27 January 2024
  • func = 1; ...n by Bryan Williams ([[K&R2 solutions:Ancillary:Category numbers|category 1]]) == ...
    7 KB (871 words) - 19:22, 28 December 2021
  • ===Chapter 1 - A Tutorial Introduction=== <td> 1 </td> <td> 8 </td> ...
    8 KB (1,237 words) - 01:47, 4 July 2011
  • int numeric = 0; /* 1 if numeric sort */ int reverse = 0; /* 1 if sorting in reverse order */ ...
    12 KB (1,586 words) - 05:32, 24 December 2021
  • {{KR2_Header|1.21|34| Write a program <code>entab</code> that replaces strings of blanks KnR 1-21 ...
    19 KB (2,351 words) - 14:24, 17 September 2024
  • #define TRUE 1 for (i = 0; i < lim - 1 && (c = getchar()) != EOF && c != '\n'; i++) ...
    13 KB (1,729 words) - 04:13, 24 December 2021
  • ...ode> where any character from the string <code>s2</code> occurs, or <code>-1</code> if <code>s1</code> contains no characters from <code>s2</code> . (Th where any character from the string s2 occurs, or -1 if s1 contains no characters from s2. ...
    13 KB (1,713 words) - 13:40, 12 February 2024
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)
Views
Personal tools