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
Write a program to check armstrong number in c?
Differentiate between the expression “++a” and “a++”?
Is there any data type in c with variable size?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Which header file is used for clrscr?
How can I send mail from within a c program?
how to create duplicate link list using C???
Why can arithmetic operations not be performed on void pointers?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What are local static variables?
Difference between macros and inline functions? Can a function be forced as inline?
Is main a keyword in c?
What is c language & why it is used?
Discuss the function of conditional operator, size of operator and comma operator with examples.