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
The Scope Resolution Operator( :: ) Global variables are explained outside any functions and thus can be used by all the functions defined thereafter. However, if a global vari

What is the use of PEAR in php? PEAR is termed as PHP Extension and Application Repository. It provides structured library to PHP users and also gives provision for package mai


C program to remove vowels in sentence : void main() {                 char  str[100];                 int n;                 printf("enter string\n");

Define Functions with arguments and return values? The earlier category functions receive values from the calling function through arguments but do not send back any value rath


•Flow Chart and Pseudocode of Add module - Hotel booking - Signup for new membership Delete module - Hotel reservation cancellation - Change of reservation


Train Station C++ Program A C++ program that provides a simple text based interface that will allow a user to create, edit, search, or delete a train schedule. The program will m

Changing Field width The printf() and scanf() functions from the standard library, use width specifier for controlling the width of its output . Similarly, the ostream class al