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
Reference Types The symbol "&" is interpreted as an address operator as well as AND operator. This operator is also used to declare a "reference variable". A reference is refer

Write a method (belonging to the TermStructure class) that takes a pointer to an array of bonds and an integer, representing the number of bonds in the array as arguments, and esti

Inheritance is the process of forming new classes, called derived classes, from existing classes or base classes. The derived class inherits all the capabilities of the base class,

#questio#A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string

Why PHP is also known as scripting language? PHP is fundamentally a general purpose language, which is used to write scripts. Scripts are normal computer files which comprises

¦It should ask customers to enter details such as their names and addresses. ¦It should print a welcome message that includes the customer’s name. ¦It should provide a list of avai

Cross Platform Clinet app for a vpn Project Description: We want a cross platform client app for VPN. The app must have the subsequent options below: 1. Must be an open

The program reads two numbers and a character (operator). If the character is "+" then sum is displayed. If it is "-"then difference is displayed. If it is "*" then product is disp

I Want a answer for solving the big M method in the topic of simplex method...

write a c++ program for pebble merchant