Recent questions tagged programming-in-c

2 votes
3 answers
151
3 votes
2 answers
152
#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...
0 votes
1 answer
153
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?
0 votes
1 answer
154
18 votes
4 answers
155
1 votes
1 answer
156
#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;}
0 votes
1 answer
157
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?
3 votes
1 answer
158
0 votes
1 answer
162
0 votes
2 answers
163
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...