how to find the sizof of any datatype using bit manipulations

Answer Posted / jvhariharan

void main()
{
int a,b;
a=sizeof(int);
b=sizeof(char);
pf("int:%d char:%d",a,b);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a good way to implement complex numbers in c?

590


What are the back slash character constants or escape sequence charactersavailable in c?

680


Is it possible to execute code even after the program exits the main() function?

807


Where is c used?

644


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1248






Difference between MAC vs. IP Addressing

636


code for find determinent of amatrix

1512


Why static is used in c?

618


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

640


Why is c faster?

589


Is swift based on c?

636


Why doesnt that code work?

597


What is the difference between the local variable and global variable in c?

526


What are the types of operators in c?

610


while initialization of array why we use a[][2] why not a[2][]...?

1861