sizeof(int) in c:
What will be the output of below C program?
if(sizeof('a') == sizeof(int))
compile time error, invalid expression.
it prints same. because sizeof('1') is 4 bytes, because it takes ascii value of '1' here, which is an int. and sizeof(1) is obviously 4 bytes. so both are same.
Back To Top