How much is size of struct having 1 char & 1 integer?

Answer Posted / poorn singh

the object for the struct will use 3 bytes (1 byte for char and 2 byte for integer) in a sequential manner.

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a namespace in c++?

1474


How important is c++?

743


Write a program which uses functions like strcmp(), strcpy()? etc

874


Why is "using namespace std;" considered bad practice?

890


What kind of problems can be solved by a namespace?

830


How do I get good at c++ programming?

869


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3690


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

775


Should a constructor be public or private?

778


Why do we use setw in c++?

880


Explain what is polymorphism in c++?

890


What is function prototyping? What are its advantages?

840


What gives the current position of the put pointer?

769


How is new() different from malloc()?

872


What are activex and ole?

798