Determine the size of an interger data type without using , C/C++ Programming

Determine the size of an interger data type without using sizeof() function?

A: #include int main()

{

int *i ;

int *j = i + 1;

cout << " size of an integer variable i = " << (int)j - (int)i << endl;

}

 

Posted Date: 3/21/2013 7:41:01 AM | Location : United States







Related Discussions:- Determine the size of an interger data type without using , Assignment Help, Ask Question on Determine the size of an interger data type without using , Get Answer, Expert's Help, Determine the size of an interger data type without using Discussions

Write discussion on Determine the size of an interger data type without using
Your posts are moderated
Related Questions
Estimation of the yield curve using nonlinear least squares minimization: The last part of this assignment asks you to construct the Nelson Siegel yield curve from observed bond pr

C Program for TOTAL  & AVERAGE IN THE ARRAY  #include stdio.h> #include conio.h> #include string.h> void main() {           int i=0,n[100],limit=0,a=0;

Program to define an array in c: Write a program to define an array and print the value of array. void main() { int a[10]={0,11,21,34,44,75,46,57,88,89},i,j,k; clr


Define the Data Type Modifiers in C language? There are three data types(int, float & double) above have the following modifiers. 1. short 2. long 3. signed 4. unsigned

Problem : (a) What do you understand by the term ‘constructor' in Java? Explain with an appropriate example. (b) Describe the differences between an object and a class usi


Assignment:  write a C program and a MASM procedure.  The C program calls the MASM procedure to perform letter case conversion. Text sections covered:  12.1 to 12.3.1 Write a


void main() { int *p, *q, i ; p=(int*)100; q=(int*)200; i=q-p; printf("%d",i); } }