how to find the size of the data type like int,float
without using the sizeof operator?

Answer Posted / rajesh gooda

ptr manipulation will return 1.

printf("size of int is %d",(int)((int*)0 + 1))

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function prototype in c language?

798


When should the register modifier be used? Does it really help?

773


What is the stack in c?

880


How do I get an accurate error status return from system on ms-dos?

851


What is #line in c?

748


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

843


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1939


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

840


what is the structure pointer?

1835


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

1724


What does %p mean c?

813


Is there sort function in c?

777


What are local static variables? How can you use them?

835


What is the difference between procedural and declarative language?

874


cavium networks written test pattern ..

3797