#include iostreamusing namespace std;int main(){char c = 74;cout c;return 0;}
#include stdio.hOutput isvoid solve() {char ch[10] = "abcdefghij";int ans = 0;for(int i = 0; i 10; i++) {ans += (ch[i] - 'a');}printf("%d", ans);}int main() {solve();return 0;}
What will be the output of the following code snippet?def thrive(n):if n % 15 == 0:print("thrive", end = " ")elif n % 3 != 0 and n % 5 != 0:print("neither", end = " ")elif n % 3 == 0:print("three", end = " ")elif n % 5 == 0:print("five", end = " ")thrive(35)thrive(56)thrive(15)thrive(39)
#include stdio.hmain(){char *p = 0;*p = 'a';printf("value in pointer p is %c\n", *p);}
#include stdio.hA)5void solve() {int x = 2;printf("%d", (x 1) + (x 1));}int main() {solve();return 0;}
What will be the output of the following c code in 64 bit machine?#include stdio.hunion Sti{int nu;char m;};int main(){union Sti s;printf("%d", sizeof(s));return 0;}