how the size of an integer is decided?
- is it based on processor or compiler or OS?

Answer Posted / akshay

compiler

if compiler is 16 bit compiler then int is of 2 bytes (turbo c)
if compiler is 32 bit then int is of 4 bytes in VC++

but for 32 bit compiler processor should be compatible i.e. of 32 bytes
so processor also decides it
again of OS
if os is 16 bit how you r going to run a 32 bit compiler on it

so a confusing question

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files why are they important?

877


What is the significance of c program algorithms?

928


What are integer variable, floating-point variable and character variable?

918


Compare array data type to pointer data type

847


What is a volatile keyword in c?

934


What are the advantage of c language?

810


What is property type c?

871


What is linear search?

949


What is modifier & how many types of modifiers available in c?

844


How can you avoid including a header more than once?

785


How can you find the exact size of a data type in c?

812


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

2883


Can a function argument have default value?

944


What are the types of c language?

819


Function calling procedures? and their differences? Why should one go for Call by Reference?

872