User Profile

Collapse

Profile Sidebar

Collapse
cjava
cjava
Last Activity: Aug 8 '08, 06:21 PM
Joined: Feb 18 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cjava
    replied to Debugging C - Question
    in C
    Hi raghu ,

    Thanks for replying. I was just curios if there are any other blatant error .

    This is one of the questions I was interviewed last year. I was told by the interviewer that there are around lots error. Thats why , I was curious if there are anyother errors.
    See more | Go to post

    Leave a comment:


  • cjava
    replied to How to pass 2D array to function
    in C
    Cool ..

    Let me make some other points clear ..

    The problem is to pass a 2 dimensional array to a function.

    From your question I presume you want to pass the array by reference because only that would make sense.

    First of all in order to do that you need to understand certain nuances for passing an array.

    when you declare

    int a [5]

    then an memory...
    See more | Go to post

    Leave a comment:


  • cjava
    started a topic Debugging C - Question
    in C

    Debugging C - Question

    Hi ,

    I was once asked to debug the following code. The code is attached as an image file:

    I have found the following Bugs but I would like some other thoughts too :

    1 ) Should Bool be a defined type then , succeeded should be initialized to False

    2 ) Line 28 : if size_t is defined as long in a 64 bit system then its passsed to uint32 which will make it lose higher 32 bits

    ...
    See more | Go to post
No activity results to display
Show More
Working...