write a program for size of a data type without using
sizeof() operator?
Answer Posted / fanish
#include <stdio.h>
int main(){
printf("%d\n",((int*)0 + 1));
}
We can replace int with any other type
(Built-in/user-defined ) to get the size.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is the role you expect in software industry?
Explain the ternary tree?
Why does everyone say not to use gets?
What is the use of extern in c?
how we can make 3d venturing graphics on outer interface
What does the error message "DGROUP exceeds 64K" mean?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
program for reversing a selected line word by word when multiple lines are given without using strrev
What is the function of this pointer?
What’s the special use of UNIONS?
The file stdio.h, what does it contain?
What is the use of function overloading in C?
What is void main () in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
how can I convert a string to a number?