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
How do you initialize pointer variables?
Difference between pass by reference and pass by value?
i have a written test for microland please give me test pattern
What is #define size in c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Explain Function Pointer?
What is a memory leak? How to avoid it?
What is variable initialization and why is it important?
What is variables in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What are dangling pointers in c?
Explain the use of bit fieild.
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Why is c called c?
What are the types of assignment statements?