#include stdio.hint main(void){const int j = 20;int *ptr = &j;printf("*ptr: %d\n", *ptr);return 0;}
What will be the output of the following code snippet?#include stdio.hvoid solve(int x) {if(x == 0) {printf("%d ", x);return;}printf("%d ", x);solve(x - 1);printf("%d ", x);}int main() {solve(3);return 0;}
include stdio.hvoid 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;}
#include stdbool.hPredict the output!#include stdio.hint main(){int a = 10, b = 4;bool res = ((a != b) && printf("Sookshmas"));return 0;}
int main()what is the output of the program{int size=4;int a[size];a[0]=5;a[1]=6;a[2]=7;a[3]=8;printf("%d %d", *(a+2), a[1]);}