>
> From: au veer [mailto:[EMAIL PROTECTED]
>
> [facetious answers to blatant homework questions=...]
>
> >1.  Write a program to reverse a linked list.
>
> Ok. Done that.
>
> >2.   What are meta characters
>
> Character encodings that represent other characters.
>
> >3.  main()
>
> Implicit int. No headers included.
>
> >  {
> >  int x =5, y;
> >  y = size(++x);
> >  printf("X = %d", x);
>
> Undefined behaviour since you have just defined printf as:
>    printf(char*, int)
> which does not match the reas definition of printf()
>
> >  }
> >Prints X = 5 only Why ?
>
> Because you have invoked undefined behaviour - anything is permitted.
> Including the answer you'd expect.
>
> >4. How for, near, huge pointer r represented in
> >memory.
>
> Why do you need to know this with todays compilers? If you're
> programming on a platform that requires these, and you're asking us, you
> have big problems.
>
> >5. Is there something we can do in  C but not in C++.
>
> Yes.
>
> >6. Difference Between Struct and Class.( atleast 2
> >example)
>
> 1) the spelling
> 2) the number of letters.
>
> One thing they have in common is that neither is a keyword in C++ (or C
> for that matter) - neither should have a capital letter in them.
>
> >7. foreign key can be primery key true or false.
>
> Indeed the statement is true or false. (In fact, that's not as facetious
> as it sounds - it can be either)
>
> >Please try give example.
>
> I tried, but had the same attitude to doing it that you have to doing
> your own homework.
>
> >8. what is the protocol name for flow control. using
> >slide window concept
>
> Google not working?
>
> >9. How to write a program such that it will delete
> >itself after exectution?
>
> What platform? Insufficient information given.
>
> >10.  Write a small pseudo code for finding no nodes in
> >a given tree.( Ordinery tree)
>
> 'Ordinary tree'? No such thing (unless you count the one in my garden) -
> we talking about binary tree? Red/Black? Balanced? Unbalanced?
>
>
> --
> PJH
>
> bug, n: An elusive creature living in a program that makes it incorrect.
> The activity of "debugging", or removing bugs from a program, ends when
> people get tired of doing it, not when the bugs are removed. -
> "Datamation", January 15, 1984
>

Hi,

Answer to point five was unexpected to me. I thought that everything that
you can do in C, you can do it also in C++. What are those things?

And about point six, another difference, I think, is that by default, a
class' members are private, wheras the struct's members are public.

Regards,
Fernando.










------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe : [EMAIL PROTECTED]

 
Yahoo! Groups Links

<*> To reply to this message, go to:
    
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4942
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/Programmers-Town/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to