Can U write a C-program to print the size of a data type
without using the sizeof() operator? Explain how it works
inside ?
Answer Posted / rajesh
#include<stdio.h>
int main()
{
int p;
printf("%d\n",(char*)(&p+1)-(char*)(&p));
return 0;
}
Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
Tell us two differences between new () and malloc ()?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What is meant by inheritance?
What is modeling?
Explain two-dimensional array.
what is the different bitween abap and abap-hr?
Describe the modifier in c?
how can use subset in c program and give more example
What is c programing language?
What is the significance of scope resolution operator?
What do you mean by a sequential access file?
What are the 4 data types?
When would you use a pointer to a function?
What is array within structure?
What do mean by network ?