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
#1
53
views
1
answers
0
votes
Recursion
Find Output of below Code#include<stdio.h>int sum(int n) { n = 3; if (n == 2) return 2; return sum(n-1)*n ;}int main() { printf("%d\n", sum(5) ); return 0}
harshitraj12
53
views
harshitraj12
asked
2 days
ago
Programming in C
programming-in-c
programming
recursion
output
2-marks
+
–
#2
91
views
2
answers
1
votes
pointers in c programming answer the output
#include <stdio.h> int main() { // Write C code here int i=10,*p,**q,***r; p=&i; *p=15; q=&p; **q=20; r=&q; ***r=*p+1; printf("%d",i); return 0; }answer the output as integer _________
kirmada
91
views
kirmada
asked
5 days
ago
Programming in C
programming-in-c
programming
pointers
numerical-answers
+
–
#3
97
views
1
answers
1
votes
c programming
#include <stdio.h> int main() { int (*a)[2]; int arr[4][4]={1,2,3,4,6,7,8,9}; a=arr; ++a; printf("%d",**a); return 0; }what is the answer NUMARICAL--------------------------------?
kirmada
97
views
kirmada
asked
5 days
ago
Programming in C
programming
programming-in-c
array
array-of-pointers
+
–
#4
57
views
0
answers
1
votes
give output of following c code
#include <stdio.h> void f(int (*x)(int)); int mysh(int); int (*sh)() = mysh; int main() { f(sh); sh++; for(int x=sh;x>=0;x--){ if(x){ printf ... A:10C:10 i will go thereB:10 i will go there number of timesD:10 i will go here number of times
shivamSK
57
views
shivamSK
asked
6 days
ago
Programming in C
programming-in-c
programming
1-mark
2-marks
recursion
array-of-pointers
array
+
–
#5
63
views
1
answers
1
votes
Answer the following C programming code
#include <stdio.h> void f(int (*x)(int)); int myfoo(int i); int (*foo)(int) = myfoo; int main() { f(foo(10)); } void f( ... i; }sanfoundry C programming Questiona) Compile time errorb) Undefined behaviourc) 10 11d) 10 Segmentation fault
shivamSK
63
views
shivamSK
asked
6 days
ago
Programming in C
programming-in-c
programming
gateoverflow
+
–
#6
40
views
0
answers
0
votes
#genral doubt
Not related to gate but genral programming..if some one ask me array indexing start from 0,yes i know array indexing start from 0 . but can i also say ... Array indexing tell me how many steps ahed are from the first position of array,
jugnu1337
40
views
jugnu1337
asked
6 days
ago
Programming in C
interview
general-topic-doubt
+
–
#7
72
views
2
answers
1
votes
DAIICT-gandhinagar MSC-IT c-programming Question
kirmada
72
views
kirmada
asked
Jun 18
Programming in C
programming-in-c
programming
mtech
interview
+
–
#8
122
views
1
answers
1
votes
C programming Array & Loops
#include <stdio.h> int main () { int i, k; int a [8] = {33,34,35,36,37,40,50,38}; for(i = 0; i < 3; i++) { a[i] = a[i] + 1; i=i+1; } ... int i = k/2; a[i] = a[i] - 1; } printf ("%d",i+a[i]); }Numerical Answer ______________________________
shivamSK
122
views
shivamSK
asked
Jun 15
Programming in C
programming-in-c
programming
array
loop
loop-invariants
+
–
#9
149
views
1
answers
1
votes
Gate 2007 pyq C programming
what is output of c code : assume answer Is numerical...🙂
shivamSK
149
views
shivamSK
asked
Jun 9
Programming in C
goclasses
programming-in-c
2-marks
programming
+
–
#10
104
views
1
answers
1
votes
what is the output of following c code A:2 B:32 C:16 D:NONE
#include <stdio.h> double pom(double x,int n){ if(n==1) return x; else return x*pom(x,n-1); --n; } int main() { int a=pom(2,5); printf("%d",a); return 0; }what is the output of following c codeA:2B:32C:16D:NONE
shivamSK
104
views
shivamSK
asked
Jun 9
Programming in C
programming-in-c
programming
goclasses
1-mark
+
–
#11
83
views
1
answers
1
votes
what is the output of following c code 1/2 marks
what is output of this c codeA: 321B: 123C: error(infinite/segmentation)D:333
shivamSK
83
views
shivamSK
asked
Jun 9
Programming in C
goclasses
1-mark
programming-in-c
programming
2-marks
+
–
#12
120
views
2
answers
1
votes
programming in c, conditional statement using if else and increment decrement operator
answer the output#include <stdio.h> int main() { int x=0; x++; if(--x){ x=x++; if(x){ printf("hello"); }else{ printf("%d",x); } }else{ x=x+5; if(x){ printf("i win x times"); } else{ printf("you win 5 times"); } } return 0; }
shivamSK
120
views
shivamSK
asked
Jun 8
Programming in C
programming-in-c
programming
+
–
#13
287
views
1
answers
2
votes
Gate Wallah DPP
Consider the following function:int arc(int i, int j){if(i<2) return j+2;else if(j<2) return arc(i-1, 1);else return arc(i-1, arc(i, j-2));}The value returned by arc(2, 6) is _________
Khushboo Solanki
287
views
Khushboo Solanki
asked
May 11
Programming in C
programming-in-c
numerical-answers
+
–
#14
165
views
1
answers
0
votes
Functions
Consider the following function:int arc(int i, int j){if(i<2) return j+2;else if(j<2) return arc(i-1, 1);else return arc(i-1, arc(i, j-2));}The value returned by arc(2, 6) is ____________
Khushboo Solanki
165
views
Khushboo Solanki
asked
May 11
Programming in C
functions
+
–
#15
164
views
1
answers
0
votes
self doubt
let suppose address of first index of array is n and size of each block of array is u. then the index of second element is a+u.let suppose the array has m elements. ... array of same size, if it's address of second last element is (n - u).
srijankarak_123
164
views
srijankarak_123
asked
May 7
Programming in C
programming-in-c
array
+
–
#16
78
views
0
answers
0
votes
i am not able to give test
arjun1947
78
views
arjun1947
asked
May 5
#17
146
views
0
answers
0
votes
university assignment question
The array-based stack throws an exception when the array's capacity has been reached. Consider the following alternative : create a larger array, using the resize method. The cost ... the resize, elements maySolutions = O(N^2)O(N)O(N^2)O(N)
꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂
146
views
꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂
asked
May 5
DS
data-structures
array
time-complexity
+
–
#18
321
views
2
answers
1
votes
Test series question of ace academy
#include<stdio.h>#define ADD(a,b)(a+b)#define SQUARE(x)(x*x)int main(){int x=2;int y=3;int z = ADD(SQUARE(x++),y);printf("%d\n",z);return 0;}What is the output of the above code snippet?
Ayush_Pal
321
views
Ayush_Pal
asked
Apr 26
Programming in C
ace-test-series
+
–
#19
306
views
1
answers
1
votes
Arrays
Consider an integer upper triangular 2D array arr[–8 to +7][–8 to +7] having base address 1000. If the size of the integer is 4 bytes, the address of the element present at location arr[–6][4] is- ____________.
piyush512
306
views
piyush512
asked
Apr 20
DS
array
data-structures
+
–
#20
261
views
1
answers
0
votes
C Programming - Arrays & Pointer (NAT)
#include <stdio.h> int main() { int a[3][2] = {1, 3, 5, 7, 9, 11}; int *ptr = a[0]; ptr += sizeof(int); printf("%d", *ptr); return 0; }(Assume size of int to be $2$ bytes.)The output is __________.
Debargha Mitra Roy
261
views
Debargha Mitra Roy
asked
Apr 16
Programming in C
array
data-structures
programming-in-c
+
–
Page:
1
2
3
4
5
6
...
311
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register