write a program for size of a data type without using
sizeof() operator?
Answer Posted / neel patwa
//Nice way to find size of any data type...
#include<iostream.h>
void main(){
int *p=0;
p++;
cout<<"\nSize of int="<<(int)p;
}
Note:U can replace int by other datatpe,
to find size of any data type..
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the rules for identifiers in c?
Describe the header file and its usage in c programming?
Can you please compare array with pointer?
How was c created?
What happens if a header file is included twice?
What are the different types of pointers used in c language?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
How do I round numbers?
What is mean by data types in c?
When can you use a pointer with a function?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is difference between structure and union?
What are structure members?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Explain what are the advantages and disadvantages of a heap?