Got it

Function and Syntax

Created: Nov 1, 2020 02:21:23Latest reply: Nov 1, 2020 05:31:07 256 2 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

Dear All, hope verybody have a good day

I have a simple question is can I replace the struct function in tree syntax with a union?

Regards,


Featured Answers

Recommended answer

Navin_kay
Created Nov 1, 2020 05:31:07

Dear user,


I think it can replace. For example, the syntax of union is like that of struct:


union u {
T1 m1;
T2 m2;
...
Tk mk;
};

View more
  • x
  • convention:

simchamnan
simchamnan Created Nov 6, 2020 14:07:54 (0) (0)
Good thank  
All Answers

Dear user,


I think it can replace. For example, the syntax of union is like that of struct:


union u {
T1 m1;
T2 m2;
...
Tk mk;
};

View more
  • x
  • convention:

simchamnan
simchamnan Created Nov 6, 2020 14:07:54 (0) (0)
Good thank  

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.