write a program for size of a data type without using
sizeof() operator?
Answer Posted / mazhar shaikh
datatype a,*p,*q;
p=&a;
q=p+1;
cout<<abs(int(p)-int(q))<<endl;
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
Explain about block scope in c?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What does dm mean sexually?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What is string constants?
What is the use of pragma in embedded c?
How does #define work?
Calculate 1*2*3*____*n using recursive function??
Explain main function in c?
What are different types of operators?
Difference between strcpy() and memcpy() function?
What is integer constants?
What is static and auto variables in c?
Write a factorial program using C.
Is multithreading possible in c?