how to find the sizof of any datatype using bit manipulations

Answers were Sorted based on User's Feedback



how to find the sizof of any datatype using bit manipulations..

Answer / 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

how to find the sizof of any datatype using bit manipulations..

Answer / nazia wasim

the size of any datatype or a variable can b
calculated using sizeof operator .it uses one
argument as the datatype or variable name
and returns the size in bytes.syntax:-sizeof
(datatype).

Is This Answer Correct ?    0 Yes 0 No

how to find the sizof of any datatype using bit manipulations..

Answer / niranjan kumar niraj

int sizeOf();

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More C Interview Questions

Is c weakly typed?

0 Answers  


Write a C program where input is: "My name is xyz". output is: "xyz is name My".

1 Answers   TCS,


difference between malloc and calloc

3 Answers   HCL, Wipro,


what is c language?

2 Answers  


how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

0 Answers  






c program to compute AREA under integral

0 Answers   Infosys,


What is use of null pointer in c?

0 Answers  


Describe explain how arrays can be passed to a user defined function

0 Answers  


What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?

1 Answers   Excel,


Is this program statement valid? INT = 10.50;

0 Answers  


what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,z; z=x-- -y; printf("\n%d %d %d",x,y,z); }

14 Answers  


what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

7 Answers   Cadence, JNTU, Zen Technologies,


Categories