syedshan
Advanced Member level 1
- Joined
- Feb 27, 2012
- Messages
- 463
- Helped
- 27
- Reputation
- 54
- Reaction score
- 26
- Trophy points
- 1,308
- Location
- Jeonju, South Korea
- Activity points
- 5,134
hello all
I have a problem while dealing with 64-bit variable...The code shows it as 32 bit instead...What is wrong with it...
Note that I have tried long long as well as __int64
please see the code snippet[
I have a problem while dealing with 64-bit variable...The code shows it as 32 bit instead...What is wrong with it...
Note that I have tried long long as well as __int64
please see the code snippet[
Code:
#include<iostream>
#include<fstream>
#include <stdio.h>
#include <Windows.h>
#include <string.h>
using namespace std;
int main (void){
signed short int *sh_pbuff;
signed long long *ln_pbuff;
__int64 long_temp = 0xfffffffffffffff; //previously used [I]long long[/I] but got the same result as now
printf("size of long is %I64d\n\n", sizeof(long_temp));
printf("value of initialzition for long_temp is %x\n\n", long_temp);
..
..