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

Mention four important string handling functions in c languages .

616


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1500


Which is the memory area not included in C program? give the reason

1495


Explain the red-black trees?

600


By using C language input a date into it and if it is right?

565






When was c language developed?

690


List some of the dynamic data structures in C?

777


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

581


What is the difference between procedural and declarative language?

638


Write a program to check whether a number is prime or not using c?

567


What is calloc in c?

652


What is the difference between memcpy and memmove?

593


Are there constructors in c?

586


What are the disadvantages of c language?

610


What is pragma in c?

618