Recent questions tagged non-gate

0 votes
1 answer
361
1 votes
1 answer
365
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
366
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
372
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
373
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
374
5 votes
3 answers
375
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
376
#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
377
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
382
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
384
$\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
385
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
386
#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; }
2 votes
6 answers
387
what is the o/p #include<stdio.h void main() { int a=5; printf("%d %d %d",a++,++a, a); }also suggest me notes so i can clear my concept about printf function (For Gate)
0 votes
1 answer
388
When are C++ copy constructors, assignment operators, and destructors, respectively,invoked?
5 votes
1 answer
389
The Linux command mknod myfifo b 4 16will create a character device if user is rootwill create a named pipe FIFO if user is rootwill create a block device if user is root...
6 votes
1 answer
390
Which product metric gives the measure of the average length of words and sentence in documents?SCI numberCyclomatic complexityLOCFog index