answersLogoWhite

0

You could just use memcpy(3), using sizeof() to get the object size.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the use of bitwise operator in c plus plus?

They perform bitwise operations like AND (&), OR (|), XOR (^) and NOT (~).


How is a bitwise copy made in c plus plus?

A bitwise copy is what you automatically get when you do not provide a copy constructor. The compiler simply provides code that copies the object without regard to the type of the members. This is dangerous if any of the members happen to be pointers, because then you have two pointers to the same object and, if you delete one, you wind up having the other pointing to an object that has been deleted.


What are logical classes in c plus plus?

There is no such thing. Logic is bitwise operation, not a data type.


How do you swap two numbers with bitwise operator in c plus plus?

// Note: ^ is the XOR operator a = a ^ b b = b ^ a a = a ^ b


What is use of l in c language?

Bitwise OR.


What is c plus c plus c plus c plus c?

c + c + c + c + c = 5 * c.


What are the conditions to swap in c plus plus without temporary?

You can swap two integers without temporary storage by bitwise exclusive-or'ing them in a specific sequence...a ^= b;b ^= a;a ^= b;


How do you concatinate two files in c plus plus?

Copy the first file then append the second file to the copy.


What are Bit Manipulations in C programming?

in C you can manipulate the individual bits of a data item. << leftwise shift >> rightwise shift & bitwise AND | bitwise OR ~ bitwise complement (flips all bits) I can't go intoa tutorial here in how to use these, but google it - i just did and there's tons of info out there.


C program plus copy of string to another?

strcpy


Users can use a shortcut such as CTRL plus C for operations they perform frequently?

CTRL C to copy


How many types of logical operators in c only?

There are three logical operators in C; AND (&), OR (|), and NOT (^). These are the bitwise versions. The combinatorial versions are &&, , and !.