Sunday, 14 October 2012

||| VuHelp4U ||| Re: [ www.vuZs.net ] CS201 Answer Required with Logic

Thank you.. 

On Sun, Oct 14, 2012 at 8:43 PM, AbdulGhafoor <abdul.ghfoor@gmail.com> wrote:
in union size of memory used is the size of largest variables. we use one type at a time i-e int or double only one at a time
----- Original Message -----
Sent: Saturday, October 13, 2012 10:02 PM
Subject: Re: [ www.vuZs.net ] CS201 Answer Required with Logic

can you give me some explanation please? 

On Sat, Oct 13, 2012 at 9:02 PM, AbdulGhafoor <abdul.ghfoor@gmail.com> wrote:
8
----- Original Message -----
Sent: Friday, October 12, 2012 7:25 PM
Subject: [ www.vuZs.net ] CS201 Answer Required with Logic

Let suppose

Union intorDouble{

Int ival;

Double charvar;

};

main(){

intorDouble  VAZ;

int size ;

size = sizeof(VAZ);

}

What will be the value of variable "size", if int occupies 4 bytes and double occupies 8 bytes?

► 2

► 4

► 8


--




Regards
Aniqa Malik

The Coward dies a thousand deaths, 
the Valiant, only once!

--
-- --
Please visit www.vuzs.net For Current & Old Papers, Quizzes, Assignments and study material.
 
To post a new message on this group, send email to vuZs@googlegroups.com
 
Message Posting Rules: http://www.vuzs.net/faq/4795-vuzs-google-groups-basic-rules-for-posting-messages.html
--
To unsubscribe from this group, send email to vuZs+unsubscribe@googlegroups.com
--
To join this group Send blank email to vuZs+subscribe@googlegroups.com
or visit
http://groups.google.com/group/vuZs/subscribe
 
 



--




Regards
Aniqa Malik

The Coward dies a thousand deaths, 
the Valiant, only once!




--




Regards
Aniqa Malik

The Coward dies a thousand deaths, 
the Valiant, only once!

--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US

No comments:

Post a Comment