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
Explain is it valid to address one element beyond the end of an array?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Where are the auto variables stored?
using only #include
What is the difference between text files and binary files?
What is putchar() function?
What does & mean in scanf?
What is string function c?
Explain is it better to bitshift a value than to multiply by 2?
What is a void * in c?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
What language is c written?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Where can I get an ansi-compatible lint?
What is a wrapper function in c?