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
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Recent questions in Programming and DS
0
votes
1
answer
81
Made easy Data structures
Consider the following array of elements <96,42,50,17,15,5,7,11,39,23,6,9,19,100,12> The minimum number of interchanges using buildheap needed to convert it into a max heap is
amitarp818
asked
in
DS
Nov 28, 2023
by
amitarp818
590
views
data-structures
heap
made-easy-test-series
0
votes
1
answer
82
What is the infix to postfix evaluation of (A+B)*(C*D - E)*F / G
According to my knowledge, it should be AB+CD*E-*F*G/ And, here is the step-wise explanation of it Converting the bracket of (A+B) - AB+ There is operator but the next operand is entire bracket term, it has to be ... Please confirm if my logic and answer is correct or not. Note Mind the space around / operator. It is there on purpose.
tbhaxor
asked
in
DS
Nov 24, 2023
by
tbhaxor
630
views
stack
infix-prefix
0
votes
1
answer
83
Made Easy test series. Doubt: My output for this question is => 1,2 and this isn't present in any of the options. Can someone please help me understand this, as per my logic, I am terminating the loop at i= 4 because of short circuit due to OR operation. Please let me know if this approach is correct or I am missing out on something.
tishhaagrawal
asked
in
Programming in C
Nov 22, 2023
by
tishhaagrawal
396
views
programming-in-c
gate-preparation
made-easy-test-series
test-series
2
votes
1
answer
84
#dsa #DataScienceAndAI #Python #Algorithms #DataStructures
When it comes to Gate Data Science and AI, what language will the DSA questions be asked in - Python or C language?
divinedrug
asked
in
Programming in C
Oct 27, 2023
by
divinedrug
274
views
algorithms
data-structures
1
vote
1
answer
85
3 Dimensional Array
How is the address written for 3-dimensional arrays? In some answers, I saw (row, column, frame) and in others, it was (frame, row, column) Which one to follow?? Also, how are these arrays stored in the memory?? Please answer
amitarp818
asked
in
Programming in C
Oct 25, 2023
by
amitarp818
413
views
programming-in-c
array
0
votes
1
answer
86
made easy test series
Suppose A is a 12 by 9 incidence matrix from a connected (but unknown) graph with 9 nodes and 12 edges. The diagonal entries of $A^{T}.A$ give the number of edges into each node. Then, what is the sum of those diagonal entries ________.
jugnu1337
asked
in
Programming in C
Oct 22, 2023
by
jugnu1337
340
views
graph-theory
0
votes
1
answer
87
Made easy
What is the correct option for the blanks so that the program runs in the correct manner? I was getting the answer B
Rohit Chakraborty
asked
in
Programming in C
Oct 6, 2023
by
Rohit Chakraborty
482
views
made-easy-test-series
programming-in-c
2-marks
0
votes
1
answer
88
ace book
its output is 6??how?? // Online C++ compiler to run C++ program online #include <iostream> using namespace std; int main() { // Write int a=-3; a=-a-a+!a; cout<<a; return 0; }
Lifesuraj
asked
in
Programming in C
Oct 6, 2023
by
Lifesuraj
234
views
ace-booklet
2
votes
1
answer
89
MADE EASY test series
What will be returned after executing this code? Why the answer is -1?
Rohit Chakraborty
asked
in
Programming in C
Oct 5, 2023
by
Rohit Chakraborty
311
views
programming
made-easy-test-series
0
votes
1
answer
90
programming
Consider the following C program. #include<stdio.h> #include<math.h> int foo(void) { return pow(2, 5); } int main() { static int s = foo(); printf("i = %d", s++); return 0; } Which of the following is TRUE? 1.Program will print 32. 2.Program will print 33. 3.Program will print 0. 4.Program gives a compilation error. ans is 4 bt how?
24aaaa23
asked
in
Programming in C
Oct 3, 2023
by
24aaaa23
386
views
programming-in-c
0
votes
1
answer
91
data structure
Consider a lower triangular matrix stored in row major order as p[-25 - - + 749][-25 - - - + 749] with base address = 6800, size of each element = 6 byte. Find the value at location p[658][596]?
deepak_8404
asked
in
Programming in C
Oct 1, 2023
by
deepak_8404
287
views
data-structures
algorithms
made-easy-test-series
1
vote
1
answer
92
Macro in c
#include<stdio.h> #define fun1(a,b) a>b?b:a #define fun2(a,b); {temp = a;a=b;b = temp;} int main() { int a = 3,b= 5,temp; if((3+fun1(a,b))>b) fun2(a,b); printf("%d%d",a,b); return 0; } Hello everyone. According to my dry run, the output of the above program should be 35 but it came as 53 on executing. Can you please explain? Thanks in advance.
Mrinal4565
asked
in
Programming in C
Sep 27, 2023
by
Mrinal4565
289
views
0
votes
2
answers
93
Self Doubt
The Total Combinations Possible of Min heap with 8 Distinct elements are ?
viral8702
asked
in
Programming in C
Sep 21, 2023
by
viral8702
283
views
binary-heap
heap
combinatory
data
data-structures
0
votes
1
answer
94
Binary Search Tree
when searching for the key 60 in a binary search tree containing nodes: 10,20,40,50,70,80,90 are traversed, not nessesarily in this same order. How many different orders are possible in which these keys can occur on the search path from the root node to the node containing key:60 ??
rupamsardar
asked
in
Programming in C
Sep 17, 2023
by
rupamsardar
304
views
data-structures
binary-search-tree
1
vote
1
answer
95
Self doubt
#include <stdio.h> void SSort(int [], int); void swap(int *,int*); int main() { int arr[] = {5,4,3,2,1,0}; int n = sizeof(arr)/sizeof(arr[0]); SSort(arr,n); for(int i = 0; i < n; i++) { printf("%d\t", arr[i]); } return 0; } void SSort( ... = *x; *x = *y; *y = tmp; } This is a selection sort algorithm. But the output of the algo is: 0 0 0 0 0 0. Where is the problem ?
Gopal6854
asked
in
DS
Sep 13, 2023
by
Gopal6854
330
views
sorting
self-doubt
algorithms
2
votes
3
answers
96
. What will be the value returned by the following function, when it is called with 11? recur (int num){ if ((num / 2)! = 0) return (recur (num/2) *10+num%2); else return 1; } (a) Function does not return any value, because it goes into an infinite loop (b) 11 (c) 1011 (d) None of these
Laahithyaa VS
asked
in
Programming in C
Sep 9, 2023
by
Laahithyaa VS
887
views
programming-in-c
1
vote
1
answer
97
c made easy test series
if X and Y denote the no of 0,1 then the value of 2X + y is
jugnu1337
asked
in
Programming in C
Sep 3, 2023
by
jugnu1337
295
views
2
votes
1
answer
98
programming in c
#include <stdio.h> int f(int x) { if(x%2==0) { return f(f(x-1)); } else return (x++); } int main() { printf("%d",f(12)); return 0; } how is this code working as it is a repetition after f(f(11))???
rupamsardar
asked
in
Programming in C
Aug 30, 2023
by
rupamsardar
474
views
programming-in-c
0
votes
0
answers
99
Made Easy DFS video Lecture
Caption
closed
BHANU pratap sharma
asked
in
Programming in C
Aug 23, 2023
by
BHANU pratap sharma
247
views
programming
3
votes
5
answers
100
C/C++ operator precedence
Why is the output of the below program 36? int main(){ int a = 1; int b = ++a * ++a * ++a; printf("%d", b ); return 0; }
arpit.bagri
asked
in
Programming in C
Aug 6, 2023
by
arpit.bagri
1.1k
views
programming-in-c
operator-precedence
Page:
« prev
1
2
3
4
5
6
7
8
9
10
...
309
next »
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)
Programming
(4.1k)
DS
(2.0k)
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 in Programming and DS
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:...
Network Sites
GO Mechanical
GO Electrical
GO Electronics
GO Civil
CSE Doubts
Aptitude Overflow