thanks in advance

This is a discussion on thanks in advance within the C Programming forums, part of the General Programming Boards category; C/C++ Questions 1. What is the output of printf("%d") 2. What will happen if I say delete this 3. Difference ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    1

    thanks in advance

    C/C++ Questions
    1. What is the output of printf("%d")
    2. What will happen if I say delete this
    3. Difference between "C structure" and "C++ structure".
    4. Diffrence between a "assignment operator" and a "copy constructor"
    5. What is the difference between "overloading" and "overridding"?
    6. Explain the need for "Virtual Destructor".
    7. Can we have "Virtual Constructors"?
    8. What are the different types of polymorphism?
    9. What are Virtual Functions? How to implement virtual functions in "C"
    10. What are the different types of Storage classes?
    11. What is Namespace?
    12. What are the types of STL containers?.
    13. Difference between "vector" and "array"?
    14. How to write a program such that it will delete itself after exectution?
    15. Can we generate a C++ source code from the binary file?
    16. What are inline functions?
    17. Talk sometiming about profiling?
    18. How many lines of code you have written for a single program?
    19. What is "strstream" ?
    20. How to write Multithreaded applications using C++?
    21. Explain "passing by value", "passing by pointer" and "passing by reference"
    22. Write any small program that will compile in "C" but not in "C++"
    23. Have you heard of "mutable" keyword?
    24. What is a "RTTI"?
    25. Is there something that I can do in C and not in C++?
    26. Why preincrement operator is faster than postincrement?
    27. What is the difference between "calloc" and "malloc"?
    28. What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?
    29. What is Memory Alignment?
    30. Explain working of printf.
    31. Difference between "printf" and "sprintf".
    32. What is "map" in STL?
    33. When shall I use Multiple Inheritance?
    34. What are the techniques you use for debugging?
    35. How to reduce a final size of executable?
    36. Give 2 examples of a code optimization.

    can u answer this faqs for me.........

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    DO YOUR OWN HOMEWORK!!!!
    http://cboard.cprogramming.com/annou...ouncementid=39

    Post what you think are the answers, then we'll correct you.

    Sheesh, board abuse in the first degree.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385

    Angry

    I second Salem, why bother even trying to do the course you are on. You are either incapable or lazy. Read the site FAQ and don't expect help on questions like this.
    Monday - what a way to spend a seventh of your life

  4. #4
    Registered User
    Join Date
    Mar 2004
    Posts
    494
    Why dont you try reading so you can answer the FAQS your own?

    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
    http://www.cprogramming.com/tutorial.html
    When no one helps you out. Call google();

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    OK, here's one answer for you

    23. Have you heard of "mutable" keyword?
    Yes.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    Oh wow - http://www.onesmartclick.com/intervi...ogramming.html
    Bye Bye vijayalakshmi, may you never get a programming job, you simply don't deserve one.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    Pathetic!

    If you ever get a programming job (which i highly doubt), what do you intend to do when you need to develop a real system? Post the specification to a forum and hope for the best?
    Monday - what a way to spend a seventh of your life

  8. #8
    Registered User
    Join Date
    Mar 2004
    Posts
    536
    Quote Originally Posted by vijayalakshmi
    C/C++ Questions


    can u answer this faqs for me.........
    Personally, I prefer the inverse-faq game: I give an answer, and you supply the frequently-asked question.

    I'll start --- The answer is 42. What's the question?

    Bonus round: This has been a frequently-asked question since prehistoric times. Who was the person who originally published this answer, and in what literary work did it first appear?

    Regards,

    Dave

  9. #9
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,801
    Quote Originally Posted by Dave Evans
    Personally, I prefer the inverse-faq game: I give an answer, and you supply the frequently-asked question.

    I'll start --- The answer is 42. What's the question?

    Bonus round: This has been a frequently-asked question since prehistoric times. Who was the person who originally published this answer, and in what literary work did it first appear?

    Regards,

    Dave
    Some interesting thoughts on what the question is can be found here.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  10. #10
    Registered User
    Join Date
    Mar 2004
    Posts
    536
    Quote Originally Posted by hk_mp5kpdw
    Some interesting thoughts on what the question is can be found here.
    I kind of hoped that the Original Poster would do his own search (not necessarily for "the answer is 42", but for answers to his questions). Then you went and spilled the beans.

    Oh, well...

    Best regards,

    Dave

  11. #11
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    Salem made a nice start. Here's another one:
    25. Is there something that I can do in C and not in C++?
    Yes
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  12. #12
    Registered User
    Join Date
    Mar 2004
    Posts
    536
    Quote Originally Posted by pianorain
    Salem made a nice start. Here's another one:
    25. Is there something that I can do in C and not in C++?
    Yes

    How about this one:
    Quote Originally Posted by vijayalakshmi
    14. How to write a program such that it will delete itself after exectution?
    Exectution??? Oh, I get it: execution.


    Well, I used to have a program like that, but I can't seem to find it...

    Regards,

    Dave

  13. #13
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    Quote Originally Posted by Dave Evans
    How about this one:
    <snip>
    Well, I used to have a program like that, but I can't seem to find it...
    Well done. We'll crank through these questions eventually.

    18. How many lines of code you have written for a single program?
    4
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  14. #14
    Registered User
    Join Date
    Mar 2004
    Posts
    536
    Quote Originally Posted by vijayalakshmi
    35. How to reduce a final size of executable?
    Well, with BASIC (that I taught myself in the third grade, on my RadioShack TRS-80), I found that deleting all comments would do it. It probably works the same with C and C++.

    Regards,

    Dave
    Last edited by Dave Evans; 02-23-2005 at 11:58 AM.

  15. #15
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    Quote Originally Posted by Dave Evans
    Quote Originally Posted by vijayalakshmi
    35. How to reduce a final size of executable?
    Well, with BASIC (that I taught myself in the third grade, on my RadioShack TRS-80), I found that deleting all comments would do it. It probably works the same with C and C++.
    Good call. You could also simply add a /* to the beginning of your program, and a */ to the end.
    Quote Originally Posted by vijayalakshmi
    2. What will happen if I say delete this
    I will say, "No, do it yourself."
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Introduction and Thanks in Advance!
    By Gallaton in forum C++ Programming
    Replies: 3
    Last Post: 05-12-2009, 12:37 AM
  2. Help w/C++ program.. thanks in advance.
    By patricio2626 in forum C++ Programming
    Replies: 4
    Last Post: 10-15-2006, 08:06 AM
  3. Advance Reverse string
    By sturm100 in forum C Programming
    Replies: 6
    Last Post: 10-29-2002, 03:08 PM
  4. Should't the Forums subcategorized into.. Newbie.. Advance.. and Expert Users
    By jawwadalam in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 10-09-2002, 04:28 PM
  5. Game Boy Advance Dev Kit
    By Unregistered in forum Game Programming
    Replies: 1
    Last Post: 05-15-2002, 01:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21