What is the value of bsame and


What is the value of bSame and why?
#include
struct S
{
float f;
char c;
int i;
};
int main()
{
S s1 = { 1.1f, 'a', 99 };
S s2 = { 1.1f, 'a', 99 };
bool bSame = memcmp(&s1, &s2, sizeof(S)) == 0;
}

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: What is the value of bsame and
Reference No:- TGS01481139

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)