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
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
278
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
281
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
272
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
297
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
322
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
866
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
283
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
463
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
236
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.0k
views
programming-in-c
operator-precedence
5
votes
2
answers
101
Gate@Zeal Workbook - C programming
What will be the output of the following code? _______ #include <stdio.h> int main(){ char val=250; int ans; ans= val+ !val + ~val + ++val; printf("%d", ans); return 0; }
saurabh0709
asked
in
Programming in C
Aug 1, 2023
by
saurabh0709
1.1k
views
zeal
programming-in-c
operator-precedence
1
vote
2
answers
102
Loops (while and for)
In the picture below: Can anyone explain to me why while' loop starting from 2 but in the case of for' loop it is starting from 1 (although i++ is available for both in Program 1 and Program 2) and also in the case of while' loop the outputs are ... ' loop the outputs are same although in Program 2 it is post increment (i++) and in Program 4 it is pre increment (++i).
Gopal6854
asked
in
Programming in C
Jul 29, 2023
by
Gopal6854
548
views
programming
loop
2
votes
1
answer
103
Arrays || C Programming
# include <stdio.h> void print(int arr[]) { int n = sizeof(arr)/sizeof(arr[0]); int i; for (i = 0; i < n; i++) printf("%d ", arr[i]); } int main() { int arr[] = {1, 2, 3, 4, 5, 6, 7, 8}; print(arr); return 0; } On GFG output is 1 2 I can’t understand the solution. Help would be appreciated!!
Sparsh-NJ
asked
in
Programming in C
Jul 29, 2023
by
Sparsh-NJ
1.1k
views
array
programming-in-c
0
votes
1
answer
104
UGC NET CSE | June 2023 | Part 2: 9
Consider a hash table of size seven with starting index zero and a hash function $(6 x+3) \bmod 4$. Assuming the hash table is initially empty. Which of the following is the content of the table when the sequence $1,3,8,10,5$, is inserted into the table using closed hashing? Here " denotes ... $3,8,1,$_,$10,5$ _,$3,8,1$,_,$10,5$ _$1,3,8,10,5$,_
admin
asked
in
DS
Jul 28, 2023
by
admin
649
views
ugcnetcse-june2023-paper2
data-structures
hashing
3
votes
1
answer
105
C programming | Union
What is the output of the code given below? #include <stdio.h> #include <string.h> union sample { int i; float f; char c; double d; char str[20]; }; int main() { // union sample sm; printf("Memory size occupied by sample : %d", sizeof(union sample)); return 0; }
arpit.bagri
asked
in
Programming in C
Jul 26, 2023
by
arpit.bagri
634
views
programming-in-c
0
votes
1
answer
106
Self Doubt
How are two numbers(int) generally stored in computers ?
Psy Duck
asked
in
Programming in C
Jul 22, 2023
by
Psy Duck
296
views
#programming
#number_representation
0
votes
1
answer
107
Self Doubt
I have a doubt on simple Queue Implementation by an array Assume Queue is full(of n size),Front is pointing to first element and Rear is pointing to last element If we dequeue the element then front's element will get deleted, Now do we have to ... space is empty) I am not talking about circular queue concept,I am just talking about simple queue implementation using array(Not circular).
viral8702
asked
in
DS
Jul 22, 2023
by
viral8702
306
views
queue
self-doubt
data-structures
0
votes
2
answers
108
self doubt
#include <stdio.h> int main() { int x = -5, y = 8; x = x + y - (y = x); printf("%d", x * y); return 0; } what will be the o/p for this? and what is the logic?
Pradeep_Kumar
asked
in
Programming in C
Jul 20, 2023
by
Pradeep_Kumar
409
views
0
votes
1
answer
109
a sequential access file has a fixed size of 25 byte records. What is the logical location of the first byte of record 5?
Harsh007
asked
in
Programming in C
Jul 19, 2023
by
Harsh007
1.0k
views
programming
1
vote
1
answer
110
Arrays, Storage classes
Can an array store elements of different storage classes?
Sparsh-NJ
asked
in
Programming in C
Jul 15, 2023
by
Sparsh-NJ
351
views
array
storage-classes-in-c
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