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

Answer Posted / santosh jain

zero , struct will not have any size in memory untill
object is created.

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are activex and ole?

655


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

664


What is insertion sorting?

764


Why the usage of pointers in C++ is not recommended ?

982


Describe private, protected and public – the differences and give examples.

676






Why iomanip is used in c++?

738


How many types of classes are there in c++?

684


What is the basic difference between C and C++?

708


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

1613


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

700


what is scupper?

1978


Can we make any program in c++ without using any header file and what is the shortest program in c++.

712


When should we use container classes instead of arrays?

674


Where can I run c++ program?

700


Is c++ platform dependent?

726