How much is size of struct having 1 char & 1 integer?
Answer Posted / vadivelt
The size of the stucture depends on the following factors.
1.Depends on the size of the datatype, allocated by compiler
2.Depends on the allignment of the variables in the
structure.
If variables of different datatypes are misalligned, then
badding bytes will be added by the compiler to falitate to
speed up the memory access by the processor.So that the size
of the structure will increase.
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
What's the "software peter principleā?
Name four predefined macros.
Name the debugging methods that are used to solve problems?
What is lvalue?
What is an arraylist c++?
What are the advantages of c++? Explain
Can you please explain the difference between using macro and inline functions?
What is a lambda function c++?
Why do we use templates?
What are the rules about using an underscore in a c++ identifier?
Discussion on error handling of C++ .
What is a binary file? List the merits and demerits of the binary file usagein C++.
what is Member Functions in Classes?
What is ios flag in c++?