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
4
votes
1
answer
121
what will be output and explain how
#include<stdio.h> #include<string.h> #define MAX(x, y) ((x) > (y) ? (x) : (y)) int main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i, j, k); return 0; }
ritwik_07
asked
in
Programming in C
Jun 10, 2023
by
ritwik_07
438
views
macros
programming-in-c
1
vote
2
answers
122
Self Doubt
char st[] = {‘G’,’A’,’T’,’E’,’\0’}; then string ka length 4 hoga ya 5 with null character?
Durgesh_7979
asked
in
Programming in C
Jun 7, 2023
by
Durgesh_7979
418
views
strings
0
votes
0
answers
123
Programming 2024 test series
Caption @sachinmittal1 sir here answer should be B na because Arr[2] point s to the 0th index of 2nd 1D-array so it means pointing to address of arr[2][0] so address size would be 8.
JayRathi
asked
in
Programming in C
Jun 1, 2023
by
JayRathi
325
views
goclasses
3
votes
3
answers
124
C Programming Recursion
#include<stdio.h> void print(int n) { printf("Hello "); if(n++ == 0) return ; print(n); n++; } int main() { void print(); print(-4); } How many times printf execute?? And How ??
Laxman Ghanchi
asked
in
Programming in C
May 19, 2023
by
Laxman Ghanchi
1.1k
views
programming-in-c
programming
recursion
0
votes
1
answer
125
C Programming Recursion
#include<stdio.h> void print(int n){ printf("Hello "); if(n++ == 0) return ; print(n); n++; } int main(){ void print(); print(-4); }
closed
Laxman Ghanchi
asked
in
Programming in C
May 19, 2023
by
Laxman Ghanchi
658
views
programming-in-c
programming
recursion
0
votes
0
answers
126
testbook question
The total number of binary trees possible with height n - 2 having n nodes are? (2n - 5)^ 2n - 3 (2n - 7)^2n - 3 (n - 3) ^2n - 2 (2n - 7)^ 2n - 2
jugnu1337
asked
in
DS
May 16, 2023
by
jugnu1337
364
views
binary-tree
0
votes
1
answer
127
data structure tree
The total number of binary trees possible with height n - 2 having n nodes are? (2n - 5)^ 2n - 3 (2n - 7)^2n - 3 (n - 3) ^2n - 2 (2n - 7)^ 2n - 2
jugnu1337
asked
in
Programming in C
May 16, 2023
by
jugnu1337
795
views
binary-tree
height
0
votes
1
answer
128
DRDO INTERVIEW..
We have stored an element after a few elements in an array, where the array size is unknown, then find the position of in array.
Saurabhgate2024
asked
in
Programming in C
May 14, 2023
by
Saurabhgate2024
456
views
programming
array
0
votes
1
answer
129
Pointer, Address
For arrays with more given elements than its size, why does doing a[i] print garbage value but *a+i brings the correct value, despite them being the same thing (a[i] = *a+i) int a[2] = {1,2,3,4}; for ( int i =0 ; i<=4 ;i++){ printf(“%d” , a[i]; // gives 1, 2, Garbage , Garbage printf(“%d”, *a+i; // gives 1, 2, 3, 4 }
Mrityudoot
asked
in
Programming in C
Apr 24, 2023
by
Mrityudoot
663
views
programming-in-c
pointers
1
vote
0
answers
130
Strings in C language
I have seen alot of people saying that we can make an Integer string in C language. But according to me we can only make a character string in C language. here is the code: void main(){ char c[20] = { 1234 }; } as far as i know this is a ... but can someone tell me that is it possible to make a string of only integers in C language? If yes then how can we initialize it?
deependu
asked
in
Programming in C
Apr 23, 2023
by
deependu
254
views
strings
programming-in-c
2
votes
2
answers
131
#Pointers #Pointer_initialization
Why can’t we do pointer initialization as int *p; *p=x; instead of p = &x; ?
Mrityudoot
asked
in
Programming in C
Apr 23, 2023
by
Mrityudoot
288
views
programming
pointers
3
votes
1
answer
132
Go Classes C programming Course
I am getting all output as 65527, Please Explain.
AniMan_7
asked
in
Programming in C
Apr 17, 2023
by
AniMan_7
630
views
goclasses
programming-in-c
3
votes
1
answer
133
Pointers
Please explain this question void main() { int a =300; char *ptr = (char*) &a ; ptr++; *ptr=2; printf("%d" , a); }
Storm_907
asked
in
Programming in C
Apr 16, 2023
by
Storm_907
450
views
pointers
programming-in-c
0
votes
1
answer
134
pointer and multidimensional array
I have confusion regarding pointers, why 1D array and 2D array works differently. For e.g. I have written a code #include <stdio.h> int main(){ int arr[6]={1,2,3,4,5,6}; int marr[3][3]={11,22,33,44,55,66,77, ... warning generated. bleepblop@bleep-M-74EWC_Program % ./array 1 -1167960528 isn't *marr suppose to print 11' in place of some longed signed value.
jaikant
asked
in
Programming in C
Apr 14, 2023
by
jaikant
356
views
programming-in-c
query
0
votes
0
answers
135
isi 2022 PCB
Let B be a binary search tree (BST) on eight nodes filled with the following set of eight integer keys A = {10, 2, 5, 3, 20, 15, 9, 22}. The order in which these keys were inserted to create B is not known. However, it is ... construct and depict pictorially four possible BSTs each of which requires 36 comparisons to check the presence of all the eight keys in A. Justify your answer
Ray Tomlinson
asked
in
Programming in C
Apr 12, 2023
by
Ray Tomlinson
351
views
gate-preparation
binary-search-tree
0
votes
1
answer
136
Website
int main() { int a = 10; cout<<a++; return 0; } (A) 10 (B) 11 (C) 12 (D) Not defined
Jeetmoni saikia
asked
in
Programming in C
Apr 12, 2023
by
Jeetmoni saikia
751
views
0
votes
1
answer
137
Data Structure | Set | IIT Kanpur Interview question
There are Insert and Retrieve_Max operations on a set {}. for n such operations what is the time complexity of the efficient algorithm possible? $n^{2}$ nlogn n logn
Souvik33
asked
in
DS
Apr 2, 2023
by
Souvik33
415
views
iit-kanpur
interview
data-structures
2
votes
1
answer
138
GO Classes 2023 | IIITH Mock Test 1 | Question: 6
What will be the output of the following C program? #include<stdio.h> int main(){ int x=3; int y; switch(x++){ x++; case 3: printf("Three %d",x); break; case 4: printf("Four %d",x); break; case 5: printf("Five %d",x); break; default: printf("Default %d",x); } } Three $3$ Four $4$ Three $4$ Four $5$
GO Classes
asked
in
Programming in C
Mar 26, 2023
by
GO Classes
617
views
goclasses2023-iiith-mock-1
goclasses
programming
programming-in-c
output
1-mark
2
votes
3
answers
139
GO Classes 2023 | IIITH Mock Test 1 | Question: 7
If $x$ is a one dimensional array, then $^*(x+i)$ is same as $^*(\&x[i])$ $\&x[i]$ is same as $x+i-1$ $^*(x+i)$ is same as $^*x[i]$ $^*(x+i)$ is same as $^*x+i$
GO Classes
asked
in
Programming in C
Mar 26, 2023
by
GO Classes
502
views
goclasses2023-iiith-mock-1
goclasses
programming
programming-in-c
array-of-pointers
1-mark
3
votes
0
answers
140
GO Classes 2023 | IIITH Mock Test 1 | Question: 14
Consider a perfect binary tree with $\mathrm{n}$ nodes and $\mathrm{h}$ height. A tree is perfect when all levels of the tree are completely full. Let root is at depth $0$ and leaves are at height $0.$ Assume Expected height of any ... $S1$ is correct but $S2$ is incorrect $S1$ is incorrect but $S2$ is correct Both are correct Both are incorrect
GO Classes
asked
in
DS
Mar 26, 2023
by
GO Classes
596
views
goclasses2023-iiith-mock-1
goclasses
data-structures
tree
binary-tree
1-mark
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
12
...
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