In C/C++ sizeof() operator is used to find size of a date type or variable. Expressions written in sizeof() are never executed.
Even if we assign a value inside sizeof(), the changes are not reflected.
Output: a = 5, b = 4
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.