how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / vishnu948923
void main()
{
char *ptr1,*ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",ptr2-ptr1);
}
| Is This Answer Correct ? | 29 Yes | 15 No |
Post New Answer View All Answers
What is the easiest sorting method to use?
What are the complete rules for header file searching?
Do string constants represent numerical values?
What does the format %10.2 mean when included in a printf statement?
What is the purpose of sprintf?
What is the -> in c?
Which function in C can be used to append a string to another string?
What is string concatenation in c?
What is New modifiers?
What are the 32 keywords in c?
What is cohesion and coupling in c?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Why is event driven programming or procedural programming, better within specific scenario?
What is default value of global variable in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples