"santosh" <> wrote in message
> Malcolm McLean wrote:
>> "ARMAS" <> wrote in message
>> > I'm a first year BSIT student... what should be the topic about
>> > programming in C that should be discussed during 2nd semester
>> >
>> A few ideas are:
>
> <snip>
>
>> should we ever use goto?
>>
>> what makes a function reusable?
>>
>> stacks, queues and linked lists - do trees as well if you are able.
>
> Why are these specific to C?
>
goto is a C keyword. Other languages sometimes have equivalents, sometimes
even called "goto". If every C construct that had some equivalent in another
lanauge was excluded from discussion, it would be quite hard to think up
topics.
"What makes a function reusable?" could be interpreted either in a very
non-C specific fashion or in a way very narrowly focused on the C language.
Not all other languages provide functions; in most that do the reusability
of a function is determined by rather different factors than affect the
typical C function. Fortran 77 functions, for example, are frequently
non-reusable because of the lack of dynamic memory for workspace.
Stacks, queues, linked lists and teees are not specific to C, but in
practise C is a language in which these structures are likely to be
implemented. Becasue of a weakness or stength of C syntax, whichever way you
look at it, whilst it is possible to build an abstract linked list in C, it
is actually easier in practical programs to code the links from scratch.
|