write a program for size of a data type without using
sizeof() operator?
Answer Posted / lalit kumar
#include "stdafx.h"
#include "stdio.h"
#include "conio.h"
int main()
{
int a;
printf("%u\n",(int)(&a+1)-(int)(&a));
getch();
return 0;
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
main() { printf("hello"); fork(); }
For what purpose null pointer used?
Do string constants represent numerical values?
What are variables c?
Can a program have two main functions?
Do you know what are bitwise shift operators in c programming?
What is a function in c?
Explain low-order bytes.
Why main function is special give two reasons?
Can you define which header file to include at compile time?
What is typedef?
What do you understand by friend-functions? How are they used?
How do you view the path?
What does struct node * mean?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above