Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged programming-in-c
2
votes
3
answers
151
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$
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
506
views
GO Classes
asked
Mar 26, 2023
Programming in C
goclasses2023-iiith-mock-1
goclasses
programming
programming-in-c
array-of-pointers
1-mark
+
–
3
votes
2
answers
152
C: Test Your Aptitude
#include<stdio.h> void main() { char arr[]=”\0”; if(printf(“%s\n”,arr)) printf(“Nothing\n”); else printf(“Something\n”); } What is the output of the following code?
#include<stdio.h>void main(){ char arr[]=”\0”; if(printf(“%s\n”,arr)) printf(“Nothing\n”); else printf(“Something\n”);} What is the output of...
MeeraUdasi
847
views
MeeraUdasi
asked
Mar 22, 2023
Programming in C
programming-in-c
+
–
0
votes
1
answer
153
Fork() system call.
main(){ int i,n; for(int i=0;i<n;i++){ fork(); printf("*"); } } How many times ‘*’ will be printed? The answer is not 2^n ? why?
main(){int i,n; for(int i=0;i<n;i++){fork();printf("*");}}How many times ‘*’ will be printed? The answer is not 2^n ? why?
vikranty2j
460
views
vikranty2j
asked
Mar 20, 2023
Operating System
programming-in-c
operating-system
+
–
0
votes
1
answer
154
physics wallah dpp
_Harshit
680
views
_Harshit
asked
Mar 18, 2023
Programming in C
programming-in-c
pointers
physicswallah
+
–
18
votes
4
answers
155
GATE CSE 2023 | Question: 25
The integer value printed by the $\textsf{ANSI-C}$ program given below is _______________ #include<stdio.h> int funcp(){ static int x = 1; x++; return x; } int main(){ int x,y; x = funcp(); y = funcp()+x; printf("%d\n", (x+y)); return 0; }
The integer value printed by the $\textsf{ANSI-C}$ program given below is _______________#include<stdio.h int funcp(){ static int x = 1; x++; return x; } int main(){ int ...
admin
10.6k
views
admin
asked
Feb 15, 2023
Programming in C
gatecse-2023
programming
programming-in-c
output
numerical-answers
1-mark
+
–
1
votes
1
answer
156
ISRO CS 2018
#include <stdio.h> int main() { int i,j,x; scanf("%d ",x); i=1; j=1; while(i<10){ j=j*i; i=i+1; if(i==x) break; } return 0; }
#include <stdio.h int main() {int i,j,x;scanf("%d ",x);i=1;j=1;while(i<10){j=j*i;i=i+1;if(i==x) break;}return 0;}
Rakshita Jadoun
601
views
Rakshita Jadoun
asked
Feb 4, 2023
Programming in C
isro2018
programming-in-c
+
–
0
votes
1
answer
157
#madeeasy
is it ok to mark both and at least option in the case of MSQ, on my view in this question first option will always be true so marking the second is correct?
is it ok to mark both and at least option in the case of MSQ, on my view in this question first option will always be true so marking the second is correct?
Dknights
390
views
Dknights
asked
Feb 1, 2023
Programming in C
programming-in-c
made-easy-test-series
query
+
–
3
votes
1
answer
158
Made Easy test series
answer given is 33
answer given is 33
TusharKumar
517
views
TusharKumar
asked
Jan 31, 2023
Programming in C
programming-in-c
output
made-easy-test-series
+
–
0
votes
1
answer
159
Programming and Data Structure | Static int | Made Easy Test series (Modified)
Consider the following C code snippets, labeled as P1, P2 and P3, the output of P1 is X , of P2 is Y and of P3 as Z . What is the value of X+Y+Z P1 #include <stdio.h> int f(int n) { static int r=40; if (n==0 | ... 1,r)-r; } else return f(n-1,r)+(2*r); } int main() { printf("%d",f(6,40)); return 0; }
Consider the following C code snippets, labeled as P1, P2 and P3, the output of P1 is “X”, of P2 is “Y” and of P3 as “Z”. What is the value of “X+Y+Z”P1#i...
Souvik33
447
views
Souvik33
asked
Jan 29, 2023
Programming in C
data-structures
programming-in-c
+
–
1
votes
1
answer
160
TestBook testSeries board game question
Consider a board game in consist of m n grid. A coin is located at the top-left corner of an m n grid. The coin can only move either down or right at any point in time. The ultimate goal of the game places the coin at the bottom-right corner of the grid. ... path(m-1, n) + path(m, n-1); } Find the number of unique paths if grid order is 5 4. 38 25 35 28
Consider a board game in consist of m × n grid. A coin is located at the top-left corner of an m × n grid. The coin can only move either down or right at any point in t...
Sahil_Lather
365
views
Sahil_Lather
asked
Jan 28, 2023
Programming in C
data-structures
programming-in-c
dynamic-programming
+
–
0
votes
0
answers
161
TestBook testseries TLB and C programming combined question
Consider the following C function executed in an OS with paging where the page size is 4 kilobytes. Further, assume that the system employs a 32-entry direct mapped TLB. int *alloc_and_init() { int counter, value=0, size=2048; int ... of the program, what is the number of TLB misses during the execution of the for loop? 0 1 2048 2
Consider the following C function executed in an OS with paging where the page size is 4 kilobytes. Further, assume that the system employs a 32-entry direct mapped TLB.i...
Sahil_Lather
205
views
Sahil_Lather
asked
Jan 28, 2023
Programming in C
operating-system
programming-in-c
data-structures
pointers
+
–
0
votes
1
answer
162
Programming
Someone please explain. Function of ‘^’
Someone please explain. Function of ‘^’
Overflow04
269
views
Overflow04
asked
Jan 24, 2023
Programming in C
programming-in-c
made-easy-test-series
+
–
0
votes
2
answers
163
Programming and ds
How many number of add and remove operations are required to access 26th element of a queue of 50 elements,so that the original queue remains the same after the access is Note:-Direct accessing through the index is not included.
How many number of add and remove operations are required to access 26th element of a queue of 50 elements,so that the original queue remains the same after the access is...
Sourin Kundu
396
views
Sourin Kundu
asked
Jan 23, 2023
Programming in C
programming-in-c
+
–
0
votes
1
answer
164
Ace Test series |C programming | What will be the output of the following program ?
What will be the output of the following program ? answer is 8 but I am getting 5, please explain where I am wrong
What will be the output of the following program ?answer is 8 but I am getting 5, please explain where I am wrong
abhinowKatore
861
views
abhinowKatore
asked
Jan 18, 2023
Programming in C
programming-in-c
recursion
+
–
1
votes
1
answer
165
Made Easy Test Series | Prog And DS | Linked List
The following C function rearranges the members of a single-linked list of integers that is passed as a parameter. The list of numbers 1, 2, 3, 4, 5, 6, and 7 in the specified order is passed to the function when it is called. How many components will move about in the list once the function is finished running?
The following C function rearranges the members of a single-linked list of integers that is passed as a parameter. The list of numbers 1, 2, 3, 4, 5, 6, and 7 in the spec...
Souvik33
727
views
Souvik33
asked
Jan 11, 2023
Programming in C
programming-in-c
made-easy-test-series
data-structures
linked-list
+
–
0
votes
1
answer
166
Choose the size of the below struct. Struct{ Int a; Char b; Float c; } 2 4 7 10
Choose the size of the below struct. Struct{ Int a; Char b; Float c; } 1)2 2)4 3)7 4)10
Choose the size of the below struct.Struct{ Int a; Char b; Float c; }1)22)43)74)10
Jeetmoni saikia
2.6k
views
Jeetmoni saikia
asked
Jan 11, 2023
Programming in C
programming-in-c
+
–
1
votes
0
answers
167
Made Easy Test Series | Prog. and DS | Dynamic Memory Allocation | Malloc
Which line number contains an error or warning:
Which line number contains an error or warning:
Souvik33
683
views
Souvik33
asked
Jan 9, 2023
Programming in C
programming-in-c
data-structures
memory-management
made-easy-test-series
numerical-answers
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
...
64
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register