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
Recent questions tagged bitwise
0
votes
1
answer
1
PTCUL-03
In C language, bitwise operation can be applied to which of the following operands A. char B. int C. short, long D. All of these
rishu_darkshadow
asked
in
Programming in C
Nov 8, 2017
by
rishu_darkshadow
331
views
ptcul-2017
programming-in-c
bitwise
3
votes
1
answer
2
Bit-wise operation
#include <stdio.h> int main() { unsigned int m = 0; m |= 0xA38; printf("%x\n",m|(m-1)); printf("%x\n",( (m|(m-1)) + 1 ) & m ); } Find the output ?
dd
asked
in
Programming in C
Jun 27, 2017
by
dd
503
views
programming-in-c
bitwise
0
votes
1
answer
3
C programming
int main() { int n = 3,i,count=0; for(i=0;i<1<<n;i++) { int p = i; while(p) { int k = p & -p; p = p - k; count++; } } } The value of count variable after execution of the above code? The value of count variable when $n = m$ ? [EDITED]
dd
asked
in
Programming in C
Apr 20, 2017
by
dd
703
views
programming-in-c
bitwise
5
votes
4
answers
4
Time complexity and output
#include <stdio.h> #define N 3 int main() { int array[N] = {1,2,3}; int i,j; for ( i=1; i<(1<<N); i++) { for( j=0; j<N; j++) { if((1<<j)&i) { printf("%d", array[j]); } } printf("\n"); } return 0 ... $N = n \;\; , n \; \text{ is a positive integer }$ ? B. What is the output? C. What will be the complexity when $N$ is large.
dd
asked
in
Programming in C
Dec 17, 2016
by
dd
1.8k
views
time-complexity
bitwise
programming-in-c
combinatory
summation
sub-set
binomial-theorem
1
vote
2
answers
5
Logical and airthmatic left shift.
I just read that the logical and airthmatical left shift are same while there is a difference in case of right shift. https://en.wikipedia.org/wiki/Bitwise_operation (under Logical shift) Can understand how are they same. Like What is arithmetic left ... other hand, the logical left shift by 1 pos would be 10010010 but both are not same. any example on that.
Tendua
asked
in
Digital Logic
Dec 5, 2016
by
Tendua
1.6k
views
co-and-architecture
digital-logic
bitwise
5
votes
4
answers
6
GATE Overflow | Programming | Test 1 | Question: 12
What will be returned by the following function foo when called as foo(10)? int foo(int n) { return n & n | 1; }
Arjun
asked
in
Programming in C
Oct 18, 2016
by
Arjun
1.4k
views
go-programming-1
programming
numerical-answers
bitwise
0
votes
2
answers
7
c_programming
What will be the output of the program? #include<stdio.h> int main() { char c=48; int i, mask=01; for(i=1; i<=5; i++) { printf("%c", c|mask); mask = mask<<1; } return 0; } A. 12400 B. 12480 C. 12500 D. 12556
Anil Khatri
asked
in
Programming in C
Sep 8, 2016
by
Anil Khatri
1.8k
views
bitwise
To see more, click for the
full list of questions
or
popular tags
.
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
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged bitwise
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...