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
what is event driven software and what is procedural driven software?
All technical questions
How can a number be converted to a string?
I need previous papers of CSC.......plz help out by posting them.......
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is array within structure?
What is variable and explain rules to declare variable in c?
Explain a file operation in C with an example.
Can include files be nested? How many levels deep can include files be nested?
What are the benefits of c language?
Why does everyone say not to use gets?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What’s a signal? Explain what do I use signals for?
Which built-in library function can be used to match a patter from the string?
What is #include cctype?