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

Answer Posted / shahbaz

as the size of char in C++ and C is one byte and the size of
int in C++,c is 2 byte so when we illl call that struct then
the memory will assigned the contents of these char and
int's variables
But
Char in C# and java is of 16 bit and in is of 32 bits and
double of 64 bits so the size of struct is depends upon
these languages.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

761


Which programming language's unsatisfactory performance led to the discovery of c++?

916


What is fixed in c++?

658


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

810


What is a class definition?

704






How many standards of c++ are there?

724


What is virtual function? Explain with an example

672


What is function prototyping? What are its advantages?

681


What is a unnitialised pointer?

648


What are guid? Why does com need guids?

669


What's c++ used for?

675


What is a c++ class?

716


What character terminates all character array strings a) b) . c) END

786


What are register variables?

730


Comment on assignment operator in c++.

809