Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Programming
Overflow04
asked
in
Programming
Jan 25
146
views
0
votes
0
votes
Someone please explain. Function of
‘^’
programming-in-c
self-doubt
test-series
Overflow04
asked
in
Programming
Jan 25
by
Overflow04
146
views
answer
comment
Follow
share this
share
1 comment
by
DebRC
commented
Jan 25
reply
Follow
share this
$(x << y)$ - Left shifts a binary number “x” by “y”.
(^) – It is the XOR symbol.
So, it does,
$10010101$ ^ $(1<<2)$ = $10010101$^$100$ = $10010001$ = $(145)_{10}$
2
2
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
0
votes
I think it is self explanatory,if not then ask
mahendrapatel
answered
Jan 25
by
mahendrapatel
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
2
votes
2
votes
2
answers
1
srestha
asked
in
Programming
May 13, 2019
623
views
Self Doubt-Programming
Can someone explain the output of this code? and what (char*) is doing actually? #include<stdio.h> struct Ournode{ char x, y, z; }; int main() { struct Ournode p={'1', '0', 'a'+2}; struct Ournode *q=&p; printf("%c, %c", '*((char*)q+1)', '*((char*)q+2)'); return 0; }
srestha
asked
in
Programming
May 13, 2019
by
srestha
623
views
programming-in-c
output
self-doubt
0
votes
0
votes
1
answer
2
Ashish Roy 1
asked
in
Programming
Apr 11, 2019
447
views
Self doubt - Programming
X=2; Y=++x * ++x * ++x ; Printf("%d",Y); In the above question, we have to use the final value of x or it will be evaluated seperately and then multiplied. Ex: Y= 3*4*5; or Y=5*5*5;
Ashish Roy 1
asked
in
Programming
Apr 11, 2019
by
Ashish Roy 1
447
views
self-doubt
programming-in-c
output
1
vote
1
vote
0
answers
3
nikunj
asked
in
Study Resources
Sep 2, 2017
228
views
Correct Approach or attitude while solving C programming Gate question
I am good with the basics of C and able to solve 25-30% previous year gate question but in majority of them i am able to run in my rough copy and get answer but most of times it is not in option ... comfortable while solving pointers and static storage kind of problem but most the time answer is wrong or just missing some logic)
nikunj
asked
in
Study Resources
Sep 2, 2017
by
nikunj
228
views
programming-in-c
self-doubt
0
votes
0
votes
1
answer
4
Overflow04
asked
in
Theory of Computation
Oct 30, 2022
159
views
Theory of Computation
Difference between L1 and L2 ??
Overflow04
asked
in
Theory of Computation
Oct 30, 2022
by
Overflow04
159
views
self-doubt
theory-of-computation
test-series
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
GO Classes NIELIT Test Series For 2023
Interview Experience : MTech Research(Machine Learning) at IIT Mandi
DRDO Scientist -B
ISRO Scientist-B 2023
BARC RECRUITMENT 2023
Subjects
All categories
General Aptitude
(2.8k)
Engineering Mathematics
(9.7k)
Digital Logic
(3.4k)
Programming and DS
(5.9k)
Programming
(4.0k)
DS
(1.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.7k)
Non GATE
(1.4k)
Others
(2.4k)
Admissions
(667)
Exam Queries
(1.0k)
Tier 1 Placement Questions
(17)
Job Queries
(77)
Projects
(9)
Unknown Category
(867)
Recent Blog Comments
Left with 10days, nothing heard back from them,...
I have updated the blog. Thanks for mentioning it.
Mtech(RA) CSE IIT Bombay Project 14 ?
Thanks man @ijnuhb because of u i cleared...
Yes : 720 General
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy