User Profile

Collapse

Profile Sidebar

Collapse
RS24
RS24
Last Activity: Oct 10 '06, 02:56 PM
Joined: Oct 6 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • RS24
    started a topic overloading delete operator
    in C

    overloading delete operator

    Hi!

    Is it true that we can overload delete operator in a class only once?

    If yes, why is it so?
    See more | Go to post

  • RS24
    replied to new replacing malloc
    in C
    ==============

    Hi Ben,

    No, its not a course/home work !
    I n fact the question is from a book and they have given the answers too . but I am not sure that the answers are right. i have an interview 2morrow n it will be really helpful if u check these-

    (these r the answers from the book itself)

    1. p=new int [MAXROW][sizeof(*p)/sizeof(int)];

    2. p=new int[1]MAXROW][MAXCOL];...
    See more | Go to post

    Leave a comment:


  • RS24
    replied to Stack & Unconditional Statements
    in C
    Be specific with the question. What kind of unconditional statements ?...
    See more | Go to post

    Leave a comment:


  • RS24
    replied to new replacing malloc
    in C
    Yes! That's exactly what the question is !...
    See more | Go to post

    Leave a comment:


  • RS24
    started a topic internal & external static
    in C

    internal & external static

    Hi!
    What are internal & external staticvariables and functions? what's their scope and how do they differ?
    See more | Go to post

  • RS24
    started a topic Variable arguments in C++
    in C

    Variable arguments in C++

    Hi!
    How to use variable arguments in C++ using (...).
    See more | Go to post

  • RS24
    started a topic new replacing malloc
    in C

    new replacing malloc

    Hi!
    Can someone tell me the correct answer for these ...

    Replace the following code using new operator-
    (Assume int is 2 bytes)
    #define MAXROW 3
    #define MAXCOL 4

    1.)
    void main()
    {
    int (*p)[MAXCOL];
    p=(int(*) [MAXCOL]) malloc(MAXROW*s izeof(*p));
    }


    2.)
    void main()
    {
    int (*p)[MAXROW][MAXCOL];
    p=(int(*)...
    See more | Go to post

  • RS24
    replied to stack vs heap
    in C
    Actually, I don't know! I am a computer engineer (fresher) , looking for job. They had this question in the test paper for a job. It was exactly " Which is faster - heap or stack? Explain with example" . And I didn't know what was it about!
    Could u tell something?
    I'll b really grateful !
    Thanks...
    See more | Go to post

    Leave a comment:


  • RS24
    started a topic stack vs heap
    in C

    stack vs heap

    hi!
    Among stack n heap, which is faster ? (In C/C++)
    See more | Go to post
No activity results to display
Show More
Working...