Recent questions tagged goclasses-cs-dpp-day-292

8 8 votes
3 3 answers
256
256 views
5 5 votes
2 2 answers
194
194 views
Consider an $8$-bit signed integer system using $2$’s complement representation. For how many integer values of $x$ does the arithmetic left shift operation $(x << 1$, i....
4 4 votes
3 3 answers
255
255 views
6 6 votes
3 3 answers
329
329 views
5 5 votes
4 4 answers
268
268 views
7 7 votes
2 2 answers
289
289 views
What is the output of the following code?#include <stdio.h struct Point { int x; int y; }; int main() { struct Point p = {4, 7}; p.x = p.x + 3; p.y = p.x + p.y; printf("%...
6 6 votes
2 2 answers
252
252 views
What is the output of the following code?#include <stdio.h struct Student { int roll; int marks; }; int main() { struct Student s1; s1.roll = 10; s1.marks = 85; printf("%...
12 12 votes
2 2 answers
252
252 views
What is the output of the following code?#include <stdio.h #define SQUARE(x) x * x int main() { int a = 3; int result = SQUARE(a + 1); printf("%d", result); return 0; }$\...
9 9 votes
3 3 answers
266
266 views
What is the output of the following code?#include <stdio.h int fun(int n) { if (n <= 1) return n; return fun(n - 1) + fun(n - 3); } int main() { printf("%d", fun(5)); ret...
8 8 votes
3 3 answers
252
252 views
What is the output of the following code?#include <stdio.h void update(int *p, int *q) { *p = *p + 2; *q = *q + 3; *p = *p + *q; } int main() { int a = 5; update(&a, &a);...
To see more, click for the full list of questions or popular tags.