From 988c07f98fce7990988ef95c6b9973baf969390e Mon Sep 17 00:00:00 2001 From: Jae1015 <31164185+Jae1015@users.noreply.github.com> Date: Tue, 31 Oct 2017 22:57:36 +0530 Subject: [PATCH] Update sizeof.cpp --- sizeof.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sizeof.cpp b/sizeof.cpp index 5f5e438..ba7ec09 100644 --- a/sizeof.cpp +++ b/sizeof.cpp @@ -22,6 +22,11 @@ int main(int argc, char const *argv[]) { cout << "Size of double is " << sizeof(double) << "\n"; cout << "Size of long double is " << sizeof(long double) << "\n"; cout << "Size of wchar_t is " << sizeof(wchar_t) << "\n"; + //In Addition + int x=95; + int y=sizeof(x++); + cout << x <<"\n"; + //Output will be 95 as sizeof() doesn't evaluate an expression. return 0; }