Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
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
121
Go Class data structure asymptotic notation practice video question 21
I have specific doubt on this question and I’ve tried to explain that in the picture , If anyone can explain it then it’ll be of great help. according to sachin sir the answer should be false( fyi).
I have specific doubt on this question and I’ve tried to explain that in the picture ,If anyone can explain it then it’ll be of great help. according to sachin sir th...
kickassakash
421
views
kickassakash
asked
Jul 4, 2023
DS
asymptotic-notation
goclasses
data-structures
+
–
0
votes
0
answers
122
Gate Overflow Test series
Can anyone explain this question to me
Can anyone explain this question to me
priyansh_1705
398
views
priyansh_1705
asked
Jul 3, 2023
Programming in C
linked-list
data-structures
+
–
1
votes
2
answers
123
Self doubt
#include<stdio.h> void dynamic(int s, ...) { printf("%d ", s); } int main() { dynamic(2, 4, 6, 8); dynamic(3, 6, 9); return 0; }
#include<stdio.h void dynamic(int s, ...) { printf("%d ", s); } int main() { dynamic(2, 4, 6, 8); dynamic(3, 6, 9); return 0; }
Jeetmoni saikia
322
views
Jeetmoni saikia
asked
Jun 20, 2023
5
votes
3
answers
124
Unacademy Weekly Test
Consider the following program, what will be the output? #include<stdio.h> void main() { int a; a = printf("2>5") > printf("2<5") ? printf("2")!=printf("20")?printf("GA"):printf("2022"):10?2!=2>5?!2?40:!2!=3?50:60:70:80; printf("%d",a); } Options: 50 60 70 None of These Answer: b. 50
Consider the following program, what will be the output?#include<stdio.h void main() { int a; a = printf("2>5") printf("2<5") ? printf("2")!=printf("20")?printf("GA"):pr...
lovish_bhatia
810
views
lovish_bhatia
asked
Jun 11, 2023
Programming in C
programming-in-c
+
–
0
votes
0
answers
125
Ace test series
What is the smallest and largest number of entries for 2-3 BTree (B2-3 Tree) of height 8 (i.e., 8 levels) ? 255 and 6560 127 and 2186 6561 and 255 255 and 2186
What is the smallest and largest number of entries for 2-3 BTree (B2-3 Tree) of height 8 (i.e., 8 levels) ?255 and 6560127 and 2186 6561 and 255255 and 2186
none30
439
views
none30
asked
Jun 11, 2023
DS
ace-test-series
data-structures
binary-tree
+
–
4
votes
1
answer
126
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; }
#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 ...
ritwik_07
436
views
ritwik_07
asked
Jun 10, 2023
Programming in C
macros
programming-in-c
+
–
1
votes
2
answers
127
Self Doubt
char st[] = {‘G’,’A’,’T’,’E’,’\0’}; then string ka length 4 hoga ya 5 with null character?
char st[] = {‘G’,’A’,’T’,’E’,’\0’};then string ka length 4 hoga ya 5 with null character?
Durgesh_7979
426
views
Durgesh_7979
asked
Jun 7, 2023
Programming in C
strings
+
–
0
votes
0
answers
128
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.
Caption@sachinmittal1 sir here answer should be B na because Arr point s to the 0th index of 2nd 1D-array so it means pointing to address of arr [0] so address size woul...
JayRathi
320
views
JayRathi
asked
Jun 1, 2023
Programming in C
goclasses
+
–
3
votes
3
answers
129
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 ??
#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 H...
Laxman Ghanchi
1.2k
views
Laxman Ghanchi
asked
May 19, 2023
Programming in C
programming-in-c
programming
recursion
+
–
0
votes
1
answer
130
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); }
#include<stdio.h>void print(int n){ printf("Hello "); if(n++ == 0) return ; print(n); n++;}int main(){ void print(); print(-4);}
Laxman Ghanchi
685
views
Laxman Ghanchi
asked
May 19, 2023
Programming in C
programming-in-c
programming
recursion
+
–
0
votes
0
answers
131
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
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
369
views
jugnu1337
asked
May 16, 2023
DS
binary-tree
+
–
0
votes
1
answer
132
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
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
863
views
jugnu1337
asked
May 16, 2023
Programming in C
binary-tree
height
+
–
0
votes
1
answer
133
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.
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
472
views
Saurabhgate2024
asked
May 14, 2023
Programming in C
programming
array
+
–
0
votes
1
answer
134
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 }
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...
Mrityudoot
682
views
Mrityudoot
asked
Apr 24, 2023
Programming in C
programming-in-c
pointers
+
–
1
votes
0
answers
135
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?
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:...
deependu
259
views
deependu
asked
Apr 23, 2023
Programming in C
strings
programming-in-c
+
–
2
votes
2
answers
136
#Pointers #Pointer_initialization
Why can’t we do pointer initialization as int *p; *p=x; instead of p = &x; ?
Why can’t we do pointer initialization as int *p; *p=x; instead of p = &x; ?
Mrityudoot
295
views
Mrityudoot
asked
Apr 23, 2023
Programming in C
programming
pointers
+
–
4
votes
1
answer
137
Go Classes C programming Course
I am getting all output as 65527, Please Explain.
I am getting all output as 65527, Please Explain.
AniMan_7
644
views
AniMan_7
asked
Apr 17, 2023
Programming in C
goclasses
programming-in-c
+
–
3
votes
1
answer
138
Pointers
Please explain this question void main() { int a =300; char *ptr = (char*) &a ; ptr++; *ptr=2; printf("%d" , a); }
Please explain this question void main() { int a =300; char *ptr = (char*) &a ; ptr++; *ptr=2; printf("%d" , a); }
Storm_907
461
views
Storm_907
asked
Apr 16, 2023
Programming in C
pointers
programming-in-c
+
–
0
votes
1
answer
139
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.
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};...
jaikant
359
views
jaikant
asked
Apr 14, 2023
Programming in C
programming-in-c
query
+
–
0
votes
0
answers
140
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
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 wer...
Ray Tomlinson
373
views
Ray Tomlinson
asked
Apr 12, 2023
Programming in C
gate-preparation
binary-search-tree
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
12
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register