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
is it possible to create your own header files?
What does #pragma once mean?
How can I manipulate individual bits?
while initialization of array why we use a[][2] why not a[2][]...?
What is data type long in c?
Explain the properties of union. What is the size of a union variable
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What is a pointer in c?
In a byte, what is the maximum decimal number that you can accommodate?
What is structure pointer in c?
What is the use of function in c?
How pointers are declared?
What is maximum size of array in c?
Is main a keyword in c?
How can I ensure that integer arithmetic doesnt overflow?