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 are local variables c?

0 Answers  


What is Your Name :)

1 Answers  


Explain b+ tree?

0 Answers  


What is the difference between variable declaration and variable definition in c?

0 Answers  


i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

2 Answers  






explain what is a newline escape sequence?

0 Answers  


develop algorithms to add polynomials (i) in one variable

0 Answers   Ignou, TCS,


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

0 Answers  


Should I learn data structures in c or python?

0 Answers  


What are the advantages and disadvantages of pointers?

0 Answers  


How can I discover how many arguments a function was actually called with?

0 Answers  


change to postfix a/(b+c*d-e)

8 Answers   Value Labs,


Categories