C Interview Paper

You may also like...

7 Responses

  1. shailendra says:

    c lang is very old lang

  2. avantika says:

    it’s not enough i need more questions which covers all topics.

  3. sir,i want to give the some hints about this question….

  4. DON says:

    December 6th, 2007 at 7:56 am, A Says:
    Your comment is awaiting moderation.
    4. What do you mean by Bit fields? Give example

    5. Write the function for changing a number from hexadecimal to integer htoi(s

  5. A says:

    4. What do you mean by Bit fields? Give example

    5. Write the function for changing a number from hexadecimal to integer htoi(s

  6. adroit says:

    Q-6)
    Compare two binary trees they are same or not.
    Sol)
    sameTree() Solution (C/C++)
    /*
    Given two trees, return true if they are
    structurally identical.
    */
    int sameTree(struct node* a, struct node* b) {
    // 1. both empty -> true
    if (a==NULL && b==NULL) return(true);
    // 2. both non-empty -> compare them
    else if (a!=NULL && b!=NULL) {
    return(
    a->data == b->data &&
    sameTree(a->left, b->left) &&
    sameTree(a->right, b->right)
    );
    }
    // 3. one empty, one not -> false
    else return(false);
    }

  1. March 20, 2013

    lån penge…

    C Interview Test Question Paper | Fresher Interview Questions…

Leave a Reply

Your email address will not be published. Required fields are marked *