I don't quite understand this exercise...



I don't quite understand what K&R want me to do in Exercise 1-20 in "The C Programming Language, 2nd Edition". Here's the description:

"Write a program detab that replaces tabs in the input with the proper number of blanks to space to the next tab stop. Assume a fixed set of tab stops, say every n columns. Should n be a variable or a symbolic parameter?"

What does this mean? Do they want me to figure out the amount of spaces a tab takes up on my system, and add them? I'm sort of confused about this question.

--
Patrick M.
/* EOF */
.



Relevant Pages

  • Error loading XAML page
    ... I have downloaded the sample files for WPF Vitual labs home page from the ... Learn tab of WindowsClient.Net. ... I am working through the exercise for task1 ...
    (microsoft.public.dotnet.framework.adonet)
  • HELP!! Two questions from <>
    ... Exercise 1-9. ... more blanks by a single blank. ... replacing each tab by \t, ...
    (comp.lang.c)
  • Inserting a table with VBA
    ... I am looking for advice on adding VBA to a my Excel workbook to copy a table ... and move it into a Summary tab that has other data in already. ... It needs to look at which tab to go to first. ... for example Tool Exercise, Written Exercise, etc.. ...
    (microsoft.public.excel.programming)
  • K&R 5-11 ( a little OT)
    ... May I ask this before I dive into this exercise which deals with Tabs. ... Does this mean that at every multiple of 8, a character would be printed if that tab stop were chosen. ... So, with the cursor at the beginning of a new line, and a "Tab Tab 'm' ...
    (comp.lang.c)
  • Re: HyperLink _ to show detail?
    ... Hi Patrick, I created a example workbook of what I am trying to do is there ... anyway you could help me create the VBA? ... detailed tab, kind of like a pivot table works? ... Project Price $20,000 ...
    (microsoft.public.excel.programming)