CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS LANGUAGES DETAILS
    Question :
    Do you know memory representation of
    int a = 7; ?





    Category Languages Interview Questions
    Rating (0.5) By 137 users
    Added on 7/22/2011
    Views 361
    Rate it!
    Answers:

    Memory representation of:
    signed int a=7; (In Turbo c compiler)
    signed short int a=7 (Both turbo c and Linux gcc compiler)
    Binary equivalent of data 7 in 16 bit: 00000000 00000111
    Data bit: 0000000 00000111 (Take first 15 bit form right side)
    Sign bit: 0 (Take leftmost one bit)

    First eight bit of data bit from right side i.e. 00000111 will store in the leftmost byte from right to left side and rest seven bit of data bit i.e. 0000000 will store in rightmost byte from right to left side as shown in the following figure:





    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    What are merits and demerits of array in c?



    View Answer
    What is wild pointer in c ?


    View Answer
    What will be output of following c program?

    int *call();
    void main(){
    int *ptr;
    ptr=call();
    clrscr();
    printf("%d",*ptr);

    }
    int * call(){
    int x=25;
    ++x;
    return &x;
    }

    View Answer
    What is dangling pointer in c?
    View Answer
    Swap two variables without using third variable.



    View Answer
    Write a c program without using any semicolon which output will : Hello word.




    View Answer
    What is the purpose of the Literature Review?

    View Answer
    How are pointer variables initialized?
    View Answer
    When should a far pointer be used?
    View Answer
    What is static memory allocation and dynamic memory allocation?
    View Answer
    What is the difference between text and binary modes?
    View Answer
    What is a null pointer?

    View Answer
    When does the compiler not implicitly generate the address of the first element of an array?
    View Answer
    Can include files be nested?
    View Answer
    Can a variable be both const and volatile?
    View Answer
    Can static variables be declared in a header file?
    View Answer
    Can static variables be declared in a header file?
    View Answer
    How can you determine the size of an allocated portion of memory?
    View Answer
    What is hashing?
    View Answer
    Difference between const char* p and char const* p
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Languages Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.015625 Seconds