There's a simple question?
how to print the size of a variable without using functions like sizeof() ?
for example if you were asked to write a program that prints size of int without using sizeof() with a resault as below:
cout<<sizeof(int);
soroush68 0 Newbie Poster
Salem 5,199 Posting Sage
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
soroush68 0 Newbie Poster
CoolGamer48 65 Posting Pro in Training
Prabakar 77 Posting Whiz
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Salem 5,199 Posting Sage
Prabakar 77 Posting Whiz
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
CoolGamer48 65 Posting Pro in Training
Salem 5,199 Posting Sage
ArkM 1,090 Postaholic
soroush68 0 Newbie Poster
ArkM 1,090 Postaholic
Prabakar 77 Posting Whiz
ArkM 1,090 Postaholic
Salem 5,199 Posting Sage
Prabakar 77 Posting Whiz
bharath404 -4 Newbie Poster
Salem commented: Bumping a thread to simply repeat answers given 18 months ago -4
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.