Recent questions in Programming and DS

0 votes
1 answer
4834
0 votes
1 answer
4835
0 votes
1 answer
4836
#include <stdio.h int main() { int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d\n", i, j); return 0; }(a) i=4 j=4 (b) i=3 j=4 (c) i=5 j=4 (d) the behavior is un...
0 votes
2 answers
4837
#include <stdio.h int main() { char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d\n", p); return 0; }(a) 5 (b) 6 (c) 9 (d) none of the above
0 votes
1 answer
4838
#include <stdio.h int main() { struct node { int a; int b; int c; }; struct node s = { 3, 5, 6 }; struct node *pt = &s; printf("%d\n", *((int*)pt+1)); return 0; }
0 votes
1 answer
4839
#include <stdio.h int main(void) { char a[5] = { 1, 2, 3, 4, 5 }; char *ptr = (char*)(&a + 1); printf("%d %d\n", *(a + 1), *(ptr - 1)); return 0; }(a) Compile Error (b) 2...
0 votes
1 answer
4840
0 votes
1 answer
4841
0 votes
1 answer
4842
1 votes
1 answer
4846
#include <stdio.h #define crypt(s,t,u,m,p,e,d) m s u t #define begin crypt(a,n,i,m,a,t,e) int begin() { printf("Hello\n"); return 0; }Options are :(a) Hello (b) Link erro...
0 votes
2 answers
4847
0 votes
1 answer
4848
#include<stdio.h int main() { int a[10][20][30] = {0}; int *b = a; int *c = a+1; printf("%ld", c-b); return 0; }
0 votes
1 answer
4850
#include<stdio.h int main() { char str[] = {'a','b','c','\0'}; str[0] -= 32; printf("%s",str); return 0; }