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

What is union in c?

0 Answers  


What is the Purpose of 'extern' keyword in a function declaration?

0 Answers  


which one is better structure or union?(other than the space occupied )

2 Answers  


What is a pointer in c plus plus?

0 Answers  


Combinations of fibanocci prime series

0 Answers  






how to devloped c lenguege?

4 Answers  


What is c language and why we use it?

0 Answers  


Software Interview Questions

1 Answers   CAT,


how many error occurs in C language ?

22 Answers   Infosys, Wipro,


Should a function contain a return statement if it does not return a value?

0 Answers  


What is data structure in c and its types?

0 Answers  


Define Spanning-Tree Protocol (STP)

0 Answers  


Categories