Most viewed questions in Programming and DS

4 votes
1 answer
2321
1 votes
0 answers
2322
void find(int x){ static int i=10,y=0; y=y+i; for(i;i>0;i=i-10){ if(x!=0) find(x-1); else{ printf("%d",y); } } }What will be output printed for find(4)?
0 votes
2 answers
2323
void PrintValue(int n) { if (n < 0) return; else { printf(n); printValue( n); printValue(n ); printf(n); } }Output for Print(5) ?
3 votes
1 answer
2325
#include <stdio.h char *str[]={"FirstSring","Is","Already","Written"}; char strp[]={str+3,str+2,str+1,str}; char *strpp=strp; int main(void) { printf("%s", ++strpp); pr...
1 votes
1 answer
2326
All functions have file scope. Thus, you cannot define a function within a function. This is why C is not technically a block-structured language.Explain pls ?
0 votes
3 answers
2327
int f(int); int main() { int b; b = f(20); printf("%d",b); return 0; } int f(int a){ a>10 ?return(20):return 10; }
0 votes
1 answer
2330
Programming languages which permit a function to return a function as its result cannot be implemented with a stack-based storage allocation scheme for activation records...
0 votes
1 answer
2331
3 votes
1 answer
2334
3 votes
1 answer
2335
Express the following list in terms of a linked list structure suitable for internal representation.$(((ab)c)d((e)))$
0 votes
3 answers
2337
The maximum size of the operator stack when converting the following infix to postfix expressiona ^ b * c * d + e * f ^ g (assume that “^” has highest precedence and ...
7 votes
3 answers
2339
What is the output of the following program?#include<stdio.h int main() { int array[]={10, 20, 30, 40}; printf(“%d”, -2[array]); return 0; }$-60$$-30$$60$Garbage valu...
0 votes
1 answer
2340
#include<stdio.h int main() { int a[10][20][30] = {0}; int *b = a; int *c = a+1; printf("%ld", c-b); return 0; }