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
What are header files why are they important?
What is the significance of c program algorithms?
What are integer variable, floating-point variable and character variable?
Compare array data type to pointer data type
What is a volatile keyword in c?
What are the advantage of c language?
What is property type c?
What is linear search?
What is modifier & how many types of modifiers available in c?
How can you avoid including a header more than once?
How can you find the exact size of a data type in c?
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
Can a function argument have default value?
What are the types of c language?
Function calling procedures? and their differences? Why should one go for Call by Reference?