Struct(s)
{
int a;
long b;
}
Union (u)
{int a;
long b;
}
Print sizeof(s)and sizeof(u) if sizeof(int)=4 and
sizeof(long)=4
Answer Posted / vikraman85
Size fo strucure wil be the total bytes of the datatypes
inside it..
so,4+4=8;
For unions the size wi be the size of the datatype whose
memory is high,.
so,its 4,.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What are c header files?
Do character constants represent numerical values?
What does dm mean sexually?
What are 'near' and 'far' pointers?
Is c weakly typed?
How the c program is executed?
Can a program have two main functions?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
explain what is a newline escape sequence?
How is = symbol different from == symbol in c programming?
What is the role of this pointer?
about c language
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Explain what are the __date__ and __time__ preprocessor commands?
What is the significance of c program algorithms?