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
What is the function of volatile in c language?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is "Hungarian Notation"?
Is c programming hard?
can we implement multi-threads in c.
What are the different types of control structures in programming?
How to Throw some light on the splay trees?
Why main is used in c?
What do you mean by c what are the main characteristics of c language?
Why are all header files not declared in every c program?
What is hungarian notation? Is it worthwhile?
How can I read data from data files with particular formats?
Write a c program to demonstrate character and string constants?
What are the functions to open and close file in c language?
In C language what is a 'dangling pointer'?