Recent questions tagged interview

0 votes
1 answer
61
#include<stdio.h int main() { int a = 5; int b = ++a * a++; printf("%d ",b); return 0; }(a) 25 (b) 30 (c) 36 (d) Undefined Behavior
0 votes
2 answers
62
0 votes
1 answer
64
0 votes
1 answer
65
0 votes
1 answer
66
#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
1 answer
67
0 votes
1 answer
68
0 votes
2 answers
72
0 votes
1 answer
74
#include<stdio.h int main() { char str[] = {'a','b','c','\0'}; str[0] -= 32; printf("%s",str); return 0; }
0 votes
2 answers
75