?
What happens if the following code is compiled on both C and C++?
What happens if the following code is compiled on both C and C++?
#include<stdio.h>
struct STRUCT
{
private:
int a;
};
int main()
{
printf("%d\n", (int)sizeof(struct STRUCT));
return 0;
}
#include<stdio.h>
struct STRUCT
{
private:
int a;
};
int main()
{
printf("%d\n", (int)sizeof(struct STRUCT));
return 0;
}
Join the Discussion
Login to post a comment or share your explanation.
Login