Login
Register
All Activity
Questions
Unanswered
Tags
Books
@ProAnswers
Enter your email address:
C Books Guide and List
C++ Books Guide and List
Best Java Books
can we perform operations like addition using unions?if possible how can we perform
0
votes
asked
by
anonymous
1 Answer
0
votes
Yes, we can perform operation sing unions. Like this
#include<stdio.h>
union uni1
{
int first_union;
}u1;
union uni2
{
int second_union;
}u2;
int main()
{
u1.first_union=6;
u2.second_union=4;
printf("%d",u1.first_union+u2..second_union);
}
answered
by
anonymous
Related questions
0
votes
1
answer
How can we know the number of days between two given dates using PHP?
asked
by
anonymous
php
0
votes
1
answer
Can websites like YouTube and MySpace be coded using PHP?
asked
by
steve
Sr Member
(
1,460
points)
php
website
0
votes
1
answer
Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?
asked
by
anonymous
c++
0
votes
1
answer
can we transfer the Blog using FTP?
asked
by
anonymous
blog
blogs
0
votes
0
answers
how can we tell the data in the "database is secured"?
asked
by
anonymous