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

Why do we use null pointer?

691


What are data structures in c and how to use them?

770


What is the difference between char array and char pointer?

614


How do we make a global variable accessible across files? Explain the extern keyword?

1514


How can I sort a linked list?

719






What is operator precedence?

742


What is c preprocessor mean?

899


difference between object file and executable file

6200


What is pass by reference in functions?

429


What is the difference between NULL and NUL?

858


What is the difference between malloc() and calloc() function in c language?

700


What is structure padding and packing in c?

714


Can you define which header file to include at compile time?

687


why wipro wase

1920


When was c language developed?

798