Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.

Interview Questions and Answers :: Ericsson

Home > Experience Archives > Ericsson > Interview Question Set 2
First Round (F-2-F) Second Round (F-2-F)
    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    #include
    int main()
    {
    int tmp=1;
    if(*(char*)&tmp == 1)
    printf("\n system is little endian \n");
    else
    printf("\n sytem is big endian \n");
    return 0;
    }
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    #define htons(A) ((((unit16_t)(A) & 0xff00) >> 8) | (((unit16_t)(A) & 0xff00) << 8))

    #define htonl(A) ((((unit32_t)(A) & 0xff000000) >> 24) | (((unit32_t)(A) & 0x00ff0000) >> 8) | (((unit32_t)(A) & 0x0000ff00) << 8) | (((unit32_t)(A) & 0x000000ff) << 24))


    ---------- or
    convertBigtoLittle (int num)
    {
    int b0,b1,b2,b3;
    b0 = (num & 0x000000ff) >> 0;
    b1 = (num & 0x0000ff00) >> 8;
    b2 = (num & 0x00ff0000) >> 16;
    b3 = (num & 0xff000000) >> 24;

    return ((b0 << 24) | (b1 << 16) | (b2 << 8) | (b3 << 0))

    }
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    storage class defines the scope (visibility) and life-time of variables and/or functions within a C Program. They precede the type that they modify. We have four different storage classes in a C program:

    # auto
    # register
    # static
    # extern
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    functions have either global scope or file scope. Global scope applies to a normal function that's visible throughout the entire program.
    File scope applies to a function you've marked as "static", so it's only visible within the same translation unit.
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    When memory allocation is done, the actual heap space allocated is one word larger than the requested memory. The extra word is used to store the size of the allocation and is later used by free( )
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

First Round (F-2-F) Second Round (F-2-F)
    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Answer:
    void (*func) (int) => "func" is a pointer to function with argument as int and return void

    int *(*func)[10] (int) => func is a pointer to function with argument as int and returning as array of pointer.

    int *(*func[10]) (int *) => "func" is a array 10 of function pointer with argument as int pointer and return pointer to int.
    Please Login First :
    Tags:

    No Tags on this question yet!