Recent questions tagged non-gate

3 votes
1 answer
361
6 votes
3 answers
362
Q.A strictly binary tree with 10 leavesA) cannot have more than 19 nodesB) has exactly 19 nodesC)has exactly 17 nodesD) has exactly 20 nodes
0 votes
1 answer
365
1 votes
1 answer
369
main(){int a;scanf("%i"&a);printf("%i %d",a,a);scanf("%d",&a);printf("%i %d",a,a);}suppose user entered 0101 as input .what is printed by above program?
0 votes
1 answer
370
main(){int a;scanf("%i"&a);printf("%i %d",a,a);scanf("%d",&a);printf("%i %d",a,a);}suppose user entered 0x56 as input .what is printed by above program?
2 votes
1 answer
376
Q1)Output with explanationLong int a = scanf("%Id %Id",&a,&a);Printf("%id",a);(A) error(B) garbage value(C) zero(D) 2
2 votes
1 answer
377
Please explain the output.#include<stdio.h>int main(){ int c; printf("geeks for %ngeeks ", &c); printf("%d", c); getchar(); return 0;}
2 votes
1 answer
378
5 votes
3 answers
379
Will it result in to an error if a header file is included twice?[A].Yes[B].No[C].It is compiler dependent
1 votes
1 answer
380
#include <stdio.h int main(void){ int i=511; char *p = (char *)&i; printf("%d", *p); }OK so why take 2's complement and not simple binary number? Means, why is C giving -...
1 votes
0 answers
381
int main(void) { // your code goes here int main(){FILE *fp;char ch, str[7];fp=fopen("test.c", "r"); /* file 'try.c' contains "This is manipal" */fseek(fp, 9L, SEEK...
–1 votes
2 answers
386
int main(){int a =5;printf("%d %d %d %d %d ",a++,a ,++a, a,a);}Output is "4 5 5 5 5". How????
1 votes
0 answers
388
$\begin{align*} &\text{A} = \text{Set of integer sequence }\left ( a_1,a_2,a_2 ,\dots , a_k \right ) \\ &\text{where } 1 \leq a_1 \leq a_2 \leq a_3 \leq \dots \leq a_k \l...
1 votes
0 answers
389
Prove that :$\begin{align*} &\text{For n , k , m are integers and } 0 < m \leq k < n \\ &\text{GCD}\left [ \binom{n}{m},\binom{n}{k} \right ] 1 \\ \end{align*}$
1 votes
2 answers
390
#include <stdio.h int main() { int a; char *x; x= (char *) &a; a=512; x[0]=1; x =2; printf("%d\n",a); return 0; }