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()
{
char *a,*s, v='m';
a=&v;
s=a;
a++;
int intsize=(int)a-(int)s;
printf("%d",intsize);
getch();
return 0;
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
When c language was developed?
What are the advantages of Macro over function?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What are the 4 types of unions?
Why is C language being considered a middle level language?
What is ponter?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
what is the syallabus of computer science students in group- 1?
Differentiate between new and malloc(), delete and free() ?
What is union in c?
How can I pad a string to a known length?
Explain union.
code for quick sort?
What are the two forms of #include directive?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?